125 current 2025-10-08 21:31:26 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# flake for blakes nixos config
|
# flake for blakes nixos config
|
||||||
# define new devices in outputs
|
# define new devices in outputs
|
||||||
# generation: 124 current 2025-10-08 20:35:43 25.05.20251006.20c4598 6.12.50 *
|
# generation: 125 current 2025-10-08 21:31:26 25.05.20251006.20c4598 6.12.50 *
|
||||||
{
|
{
|
||||||
description = "blakes nix config";
|
description = "blakes nix config";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|||||||
@@ -42,21 +42,24 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# enable users
|
# configure users & groups
|
||||||
users = {
|
users = {
|
||||||
blake.enable = true;
|
blake.enable = true; # main user, home manager
|
||||||
groups.media = { gid = 700; };
|
groups.media = { gid = 700; }; # user for share permissions with mediastack
|
||||||
|
defaultUserShell = pkgs.zsh; # the goat
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# boot (systemd is going on me)
|
||||||
|
|
||||||
# use the systemd-boot EFI boot loader.
|
|
||||||
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
|
boot.loader.systemd-boot.enable = true; # systemd your pretty cool ya know
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.initrd.systemd.enable = true; # better logging
|
boot.initrd.systemd.enable = true; # better logging
|
||||||
|
|
||||||
# setup hostname and networking stack
|
# setup hostname and networking stack
|
||||||
services.resolved.enable = true;
|
services.resolved = {
|
||||||
|
enable = true;
|
||||||
|
fallbackDns = [ "1.1.1.1" "9.9.9.9" ];
|
||||||
|
dnsovertls = "opportunistic";
|
||||||
|
};
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "snowbelle"; # hostname
|
hostName = "snowbelle"; # hostname
|
||||||
hostId = "3e6e7055"; # zfs wants this
|
hostId = "3e6e7055"; # zfs wants this
|
||||||
@@ -70,20 +73,22 @@
|
|||||||
|
|
||||||
# define shell
|
# define shell
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
users.defaultUserShell = pkgs.zsh;
|
users.
|
||||||
|
|
||||||
# package install list
|
# package install list
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim
|
git
|
||||||
lf
|
age
|
||||||
rsync
|
rsync
|
||||||
wget
|
wget
|
||||||
git
|
curl
|
||||||
iptables
|
vim
|
||||||
nettools
|
lf
|
||||||
neofetch
|
|
||||||
btop
|
btop
|
||||||
age
|
neofetch
|
||||||
|
usbutils
|
||||||
|
inetutils
|
||||||
|
iptables
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,12 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
useRoutingFeatures = "both";
|
useRoutingFeatures = "both";
|
||||||
authKeyFile = authkey_file;
|
authKeyFile = authkey_file;
|
||||||
|
extraUpFlags = [
|
||||||
|
"--accept-routes=false" # true is equilivant to useRoutingFeatures = "client" (breaks shit)
|
||||||
|
"--accept-dns=true" # explicitly allow resolved
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# declare authkey secrets
|
# declare authkey secrets
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"tailscale_authkey" = {
|
"tailscale_authkey" = {
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ alias ds='du -hs'
|
|||||||
|
|
||||||
# shortcuts
|
# shortcuts
|
||||||
alias vswap='cd ~/.local/state/nvim/swap'
|
alias vswap='cd ~/.local/state/nvim/swap'
|
||||||
|
alias rswap='rm ~/.local/state/nvim/swap/*'
|
||||||
alias tn='lf ~/documents/holocron/notes/tech'
|
alias tn='lf ~/documents/holocron/notes/tech'
|
||||||
alias nhc='lf ~/documents/holocron/work/nhc'
|
alias nhc='lf ~/documents/holocron/work/nhc'
|
||||||
alias diary='cd ~/documents/holocron/notes/journal/diary'
|
alias diary='cd ~/documents/holocron/notes/journal/diary'
|
||||||
|
|||||||
Reference in New Issue
Block a user