From 708e85fac4e6ef157d309684e8a7554f44eefc53 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sat, 26 Oct 2024 00:54:20 -0400 Subject: [PATCH 01/10] Apparently the persubvolume mounting of nfs isn't necessary anymore --- hosts/firefly/system/hardware/default.nix | 44 ++--------------------- hosts/lacros/system/hardware/default.nix | 2 +- 2 files changed, 3 insertions(+), 43 deletions(-) diff --git a/hosts/firefly/system/hardware/default.nix b/hosts/firefly/system/hardware/default.nix index 038c02a..2edf666 100644 --- a/hosts/firefly/system/hardware/default.nix +++ b/hosts/firefly/system/hardware/default.nix @@ -91,48 +91,8 @@ }; # Network mounts - "/home/jimbo/JimboNFS/Downloads" = { - device = "${config.ips.server}:/export/JimboNFS/Downloads"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/Documents" = { - device = "${config.ips.server}:/export/JimboNFS/Documents"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/Photos" = { - device = "${config.ips.server}:/export/JimboNFS/Photos"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/Videos/Random" = { - device = "${config.ips.server}:/export/JimboNFS/Videos/Random"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/Videos/Media" = { - device = "${config.ips.server}:/export/JimboNFS/Videos/Media"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/Music/Synced" = { - device = "${config.ips.server}:/export/JimboNFS/Music/Synced"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/Music/Unsynced" = { - device = "${config.ips.server}:/export/JimboNFS/Music/Unsynced"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/Projects" = { - device = "${config.ips.server}:/export/JimboNFS/Projects"; - fsType = "nfs4"; - options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; - }; - "/home/jimbo/JimboNFS/School" = { - device = "${config.ips.server}:/export/JimboNFS/School"; + "/home/jimbo/JimboNFS" = { + device = "${config.ips.server}:/export/JimboNFS"; fsType = "nfs4"; options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; }; diff --git a/hosts/lacros/system/hardware/default.nix b/hosts/lacros/system/hardware/default.nix index 4b3b692..f04fcd6 100644 --- a/hosts/lacros/system/hardware/default.nix +++ b/hosts/lacros/system/hardware/default.nix @@ -49,7 +49,7 @@ "/home/jimbo/JimboNFS" = { device = "${config.ips.wgSpan}.1:/export/JimboNFS"; fsType = "nfs4"; - options = ["x-systemd.automount" "_netdev" "nofail" "noauto"]; + options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; }; }; From 59c943eda9c23f234a075112e6c4308ec366fe9c Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sat, 26 Oct 2024 11:51:39 -0400 Subject: [PATCH 02/10] Add missing pkgs reference in Lacros --- hosts/lacros/system/boot/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/lacros/system/boot/default.nix b/hosts/lacros/system/boot/default.nix index 8b5e01f..4b60e8a 100644 --- a/hosts/lacros/system/boot/default.nix +++ b/hosts/lacros/system/boot/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { boot = { kernelPackages = pkgs.linuxPackages_latest; From fe05f4520140a3382920df4d88d6d5cae8d6056c Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 00:45:30 -0400 Subject: [PATCH 03/10] Add Macbook to the roster and whatnot --- flake.nix | 16 ++--- hosts/treefruit/home/default.nix | 25 +++++++ hosts/treefruit/id_ed25519.pub | 1 + hosts/treefruit/system/boot/default.nix | 17 +++++ hosts/treefruit/system/default.nix | 31 +++++++++ hosts/treefruit/system/hardware/default.nix | 63 ++++++++++++++++++ .../system/accounts/users/jimbo/default.nix | 1 + modules/system/services/pc/keyd/default.nix | 22 +++++- variables/secrets/default.nix | Bin 2497 -> 0 bytes 9 files changed, 166 insertions(+), 10 deletions(-) create mode 100644 hosts/treefruit/home/default.nix create mode 100644 hosts/treefruit/id_ed25519.pub create mode 100644 hosts/treefruit/system/boot/default.nix create mode 100644 hosts/treefruit/system/default.nix create mode 100644 hosts/treefruit/system/hardware/default.nix delete mode 100644 variables/secrets/default.nix diff --git a/flake.nix b/flake.nix index b8c07ca..ee2ed99 100644 --- a/flake.nix +++ b/flake.nix @@ -66,15 +66,14 @@ in { # nixos-rebuild switch --flake .#hostname nixosConfigurations = { - # PCs and Laptops - firefly = mkNix [ ./hosts/firefly/system ]; - shuttleworth = mkNix [ ./hosts/shuttleworth/system ]; - lacros = mkNix [ ./hosts/lacros/system ]; - redmond = mkNix [ ./hosts/redmond/system ]; + firefly = mkNix [ ./hosts/firefly/system ]; # Main Desktop + shuttleworth = mkNix [ ./hosts/shuttleworth/system ]; # Pinebook Pro + lacros = mkNix [ ./hosts/lacros/system ]; # Dell Chromebook + redmond = mkNix [ ./hosts/redmond/system ]; # Lenovo Laptop + treefruit = mkNix [ ./hosts/treefruit/system ]; # Macbook 14,1 - # Servers - cyberspark = mkNix [ ./hosts/cyberspark/system ]; - bomberman = mkNix [ ./hosts/bomberman/system ]; + cyberspark = mkNix [ ./hosts/cyberspark/system ]; # Dell Optiplex 7010 + bomberman = mkNix [ ./hosts/bomberman/system ]; # Oracle ARM }; # home-manager switch --flake .#username@hostname @@ -83,6 +82,7 @@ "jimbo@shuttleworth" = mkHome [ ./hosts/shuttleworth/home ] nixpkgs.legacyPackages.aarch64-linux; "jimbo@lacros" = mkHome [ ./hosts/lacros/home ] nixpkgs.legacyPackages.x86_64-linux; "jimbo@redmond" = mkHome [ ./hosts/redmond/home ] nixpkgs.legacyPackages.x86_64-linux; + "jimbo@treefruit" = mkHome [ ./hosts/treefruit/home ] nixpkgs.legacyPackages.x86_64-linux; "jimbo@cyberspark" = mkHome [ ./hosts/cyberspark/home ] nixpkgs.legacyPackages.x86_64-linux; "jimbo@bomberman" = mkHome [ ./hosts/bomberman/home ] nixpkgs.legacyPackages.aarch64-linux; diff --git a/hosts/treefruit/home/default.nix b/hosts/treefruit/home/default.nix new file mode 100644 index 0000000..769a875 --- /dev/null +++ b/hosts/treefruit/home/default.nix @@ -0,0 +1,25 @@ +{ config, nur, ... }: +{ + imports = [ + # Apps and programs + ../../../modules/home + ../../../modules/home/users + ../../../modules/home/files + ../../../modules/home/settings + ../../../modules/home/programs + ../../../modules/home/programs/misc/production + ../../../modules/home/programs/misc/gaming/launchers + ../../../modules/home/programs/misc/gaming/xash3d + ../../../modules/home/programs/misc/remote-desktop + ../../../modules/home/sway + ../../../modules/home/utils + + # Misc + ../../../overlays + ../../../variables + ../../../variables/look/colors/orange + + # Imports + nur.nixosModules.nur + ]; +} diff --git a/hosts/treefruit/id_ed25519.pub b/hosts/treefruit/id_ed25519.pub new file mode 100644 index 0000000..089969c --- /dev/null +++ b/hosts/treefruit/id_ed25519.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAzAyY6bLK/pOlijVOZjw3ikdIaOuCC1yQjxL922bON7 jimbo@treefruit diff --git a/hosts/treefruit/system/boot/default.nix b/hosts/treefruit/system/boot/default.nix new file mode 100644 index 0000000..90ff8e8 --- /dev/null +++ b/hosts/treefruit/system/boot/default.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: +{ + boot = { + kernelPackages = pkgs.linuxPackages_latest; + kernel.sysctl."vm.max_map_count" = 2147483642; + initrd = { + systemd.enable = true; + luks.devices = { + crypt-mmc = { + device = "/dev/disk/by-uuid/5bc11b61-e4dc-465c-b87a-533955cf6177"; + preLVM = true; + allowDiscards = true; + }; + }; + }; + }; +} diff --git a/hosts/treefruit/system/default.nix b/hosts/treefruit/system/default.nix new file mode 100644 index 0000000..db774c6 --- /dev/null +++ b/hosts/treefruit/system/default.nix @@ -0,0 +1,31 @@ +{ config, lib, hardware, ... }: +{ + imports = [ + ./hardware + ./boot + + # Apps and programs + ../../../modules/system + ../../../modules/system/accounts + ../../../modules/system/desktop + ../../../modules/system/programs + ../../../modules/system/services + + # Devices and hardware + ../../../modules/system/devices + ../../../modules/system/devices/boot/systemd + ../../../modules/system/devices/networking/wireless + ../../../modules/system/devices/networking/firewall/pc + ../../../modules/system/devices/networking/wireguard/pc + + # Extras + ../../../overlays + ../../../variables + + # Imports + hardware.nixosModules.apple-macbook-pro-14-1 + ]; + + networking.hostName = "treefruit"; + networking.wireguard.interfaces."${config.ips.wgInt}".ips = [ "${config.ips.wgSpan}.21/24" ]; +} diff --git a/hosts/treefruit/system/hardware/default.nix b/hosts/treefruit/system/hardware/default.nix new file mode 100644 index 0000000..9975bc5 --- /dev/null +++ b/hosts/treefruit/system/hardware/default.nix @@ -0,0 +1,63 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot = { + kernelModules = [ "kvm-intel" ]; + initrd = { + availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + kernelModules = [ "dm-snapshot" ]; + }; + }; + + fileSystems = { + "/" = { + device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e"; + fsType = "btrfs"; + options = [ "subvol=@" ]; + }; + "/home" = { + device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e"; + fsType = "btrfs"; + options = [ "subvol=@home" ]; + }; + "/nix" = { + device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e"; + fsType = "btrfs"; + options = [ "subvol=@nix" ]; + }; + "/var" = { + device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e"; + fsType = "btrfs"; + options = [ "subvol=@var" ]; + }; + "/.snapshots" = { + device = "/dev/disk/by-uuid/db67d9e8-2ead-4fe6-8a63-5c9e5071e06e"; + fsType = "btrfs"; + options = [ "subvol=@snapshots" ]; + }; + "/boot" = { + device = "/dev/disk/by-uuid/7B59-F17A"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + # Remote + "/home/jimbo/JimboNFS" = { + device = "${config.ips.wgSpan}.1:/export/JimboNFS"; + fsType = "nfs4"; + options = [ "x-systemd.automount" "_netdev" "nofail" "noauto" ]; + }; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/25b5e281-f1be-49ca-991e-b340fed3e5da"; } + ]; + + networking.useDHCP = lib.mkDefault true; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/modules/system/accounts/users/jimbo/default.nix b/modules/system/accounts/users/jimbo/default.nix index 967ab0e..8ad47c8 100644 --- a/modules/system/accounts/users/jimbo/default.nix +++ b/modules/system/accounts/users/jimbo/default.nix @@ -10,6 +10,7 @@ (builtins.readFile ../../../../../hosts/shuttleworth/id_ed25519.pub) (builtins.readFile ../../../../../hosts/lacros/id_ed25519.pub) (builtins.readFile ../../../../../hosts/redmond/id_ed25519.pub) + (builtins.readFile ../../../../../hosts/treefruit/id_ed25519.pub) (builtins.readFile ../../../../../hosts/cyberspark/id_ed25519.pub) (builtins.readFile ../../../../../hosts/bomberman/id_ed25519.pub) diff --git a/modules/system/services/pc/keyd/default.nix b/modules/system/services/pc/keyd/default.nix index 2af1288..b71dc61 100644 --- a/modules/system/services/pc/keyd/default.nix +++ b/modules/system/services/pc/keyd/default.nix @@ -7,14 +7,16 @@ settings = { main = { capslock = "overload(control,esc)"; - esc = "capslock"; + leftcontrol = "overload(ctrlmod,noop)"; + + esc = "`"; rightcontrol = "esc"; - leftcontrol = "noop"; left = "noop"; down = "noop"; up = "noop"; right = "noop"; }; + control = { h = "left"; j = "down"; @@ -22,6 +24,22 @@ l = "right"; semicolon = "macro(C-l)"; }; + + ctrlmod = { + backspace = "delete"; + "1" = "f1"; + "2" = "f2"; + "3" = "f3"; + "4" = "f4"; + "5" = "f5"; + "6" = "f6"; + "7" = "f7"; + "8" = "f8"; + "9" = "f9"; + "0" = "f10"; + "-" = "f11"; + "=" = "f12"; + }; }; }; }; diff --git a/variables/secrets/default.nix b/variables/secrets/default.nix deleted file mode 100644 index 0cbd023f7a04ac7ef1ef3441fce5ee46316b423d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2497 zcmV;y2|o4!M@dveQdv+`0Kazh-j<*S8s0hXNo)6O2-dU_Xm^CcvjB7}!VIkQ1*k5Zev^t(QCGZKsf8gLxtkO2mDR*ex^$qF`3Ul_*@M zQsGAGJ6ukOjOM#8*XYBc7IUOkL_1SzmNt2OqXaM06GCpEUY0%81yz z9p?ID3<-ATA;&HuzU?8de#I=oba$)8<>q>R9r@qWOP~#fhWAP~f!r^(TT<~njj5$n zwbo@sN+vwENmM{gaC1X1ckH&s5r1DZ6>`)`(opfOs7J z-@TCCksqtlJ=&jMn^Kq|iNs%y@=ifE0bdZ24=#$?WDLF(p z|6uj;ZjXo|;+jXJTYQ=f#PE6sy||@O8p(x(kj!u7FjY6G+cU!o!6u#coa7jrZjL1vL{qbokDoyblP@z>!_LVsE#i-hB zJlUr*rEFBEOWvh_j+4CGDAH8F?aoiMauh~yC4V5lI zGd1L@+x=&>a*~Jut^~IfN?GL~aU-+^7h@T%xhBrusDGFJIf7xO-D>84J7n95r~Qqh z+s#IJDOqrU#UizYcTr-a*?Bk#O)l6>mhO)kQ_o{&Gs&q<36=F-H)kY0M65S`!6aG_ z+IQ8o)mZT0TEOG%R27b~2RuimzEq*_j_C>6T=Fepzz*HIG)v};2@DpK`0`gHMQOrY z-BXGr4qIrx$olfq!CRLMK}UYoYJKohDMnIVoPg- zi0vz(1evT}h&!n=Qp;G{zm=sNfIf~SNBRLz28iX*VTZmdhq9zo07gb1uG7eT;6skK z18q|OE}$qXs+UX6kl!;^;eNgZ<|K#SLKSIXuj8{$h(sIi!d%q8z^CFztzZE~_5b8v zb){_DYRWHfa;PG=`X;65rEZDppS)|tiZJKm%%^Lwxahm`}PH+rtnZUVOb%{ZP*$cfnR{2(JshD;PqANrVR8C_+X z?eZB_*t`jSZ%XDHlKTXj$!2zskp{YF9)Y3f7T{qlrhOZ*py=i(0)kgxJQIW}^8m49 zA(D!%de=Ux*VXcdNqS6pk)j4!nQl&qPQ3H0L}{Bew{iFcIJ&|(-y&O;SkweG+EPF`=cXIR6vdf&xBQvUe-Vy{J7){CrUH z|I}~sg11h(Euvdp>iFp7Sut`La2VyyXzzd=*?S&^kxwN`<5C}cJZ;Y%E@q56O!BmL z*e;RzF(%bR*yvlSbvu?fe|z@^w9vdwAAQM&b^Um}X$DFCU%4om!P(W>?{jfRz#r3) zpcP9^_J&a1h6>oWYU%2!F-Ko)H?K#vkeAdC%%3~t0`PtiGUgydN!koM03W1%ljEpx zJC{|}#?{=-PWFtna;`BiaRJQ>ys=rQtr7a1-kbbgqH`B^ovKp!#b{SMWmR zr=Jr0S_v}R*qA5t@3OrCOI|m^i0fa(t%Y7;5<5lnb<`1eBEmLrImPN5?m}g(cWSazfKw?zVGiAPIgyYQbbCFuk7#ocjz=0Q15~9qj))M_Ka` LN#hQf5Z!9_x}@Av From 7d9f4cf2cd74fd45bcc645eb92ff6166af4db0b1 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 00:47:07 -0400 Subject: [PATCH 04/10] Add back secrets --- variables/secrets/default.nix | Bin 0 -> 2497 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 variables/secrets/default.nix diff --git a/variables/secrets/default.nix b/variables/secrets/default.nix new file mode 100644 index 0000000000000000000000000000000000000000..0cbd023f7a04ac7ef1ef3441fce5ee46316b423d GIT binary patch literal 2497 zcmV;y2|o4!M@dveQdv+`0Kazh-j<*S8s0hXNo)6O2-dU_Xm^CcvjB7}!VIkQ1*k5Zev^t(QCGZKsf8gLxtkO2mDR*ex^$qF`3Ul_*@M zQsGAGJ6ukOjOM#8*XYBc7IUOkL_1SzmNt2OqXaM06GCpEUY0%81yz z9p?ID3<-ATA;&HuzU?8de#I=oba$)8<>q>R9r@qWOP~#fhWAP~f!r^(TT<~njj5$n zwbo@sN+vwENmM{gaC1X1ckH&s5r1DZ6>`)`(opfOs7J z-@TCCksqtlJ=&jMn^Kq|iNs%y@=ifE0bdZ24=#$?WDLF(p z|6uj;ZjXo|;+jXJTYQ=f#PE6sy||@O8p(x(kj!u7FjY6G+cU!o!6u#coa7jrZjL1vL{qbokDoyblP@z>!_LVsE#i-hB zJlUr*rEFBEOWvh_j+4CGDAH8F?aoiMauh~yC4V5lI zGd1L@+x=&>a*~Jut^~IfN?GL~aU-+^7h@T%xhBrusDGFJIf7xO-D>84J7n95r~Qqh z+s#IJDOqrU#UizYcTr-a*?Bk#O)l6>mhO)kQ_o{&Gs&q<36=F-H)kY0M65S`!6aG_ z+IQ8o)mZT0TEOG%R27b~2RuimzEq*_j_C>6T=Fepzz*HIG)v};2@DpK`0`gHMQOrY z-BXGr4qIrx$olfq!CRLMK}UYoYJKohDMnIVoPg- zi0vz(1evT}h&!n=Qp;G{zm=sNfIf~SNBRLz28iX*VTZmdhq9zo07gb1uG7eT;6skK z18q|OE}$qXs+UX6kl!;^;eNgZ<|K#SLKSIXuj8{$h(sIi!d%q8z^CFztzZE~_5b8v zb){_DYRWHfa;PG=`X;65rEZDppS)|tiZJKm%%^Lwxahm`}PH+rtnZUVOb%{ZP*$cfnR{2(JshD;PqANrVR8C_+X z?eZB_*t`jSZ%XDHlKTXj$!2zskp{YF9)Y3f7T{qlrhOZ*py=i(0)kgxJQIW}^8m49 zA(D!%de=Ux*VXcdNqS6pk)j4!nQl&qPQ3H0L}{Bew{iFcIJ&|(-y&O;SkweG+EPF`=cXIR6vdf&xBQvUe-Vy{J7){CrUH z|I}~sg11h(Euvdp>iFp7Sut`La2VyyXzzd=*?S&^kxwN`<5C}cJZ;Y%E@q56O!BmL z*e;RzF(%bR*yvlSbvu?fe|z@^w9vdwAAQM&b^Um}X$DFCU%4om!P(W>?{jfRz#r3) zpcP9^_J&a1h6>oWYU%2!F-Ko)H?K#vkeAdC%%3~t0`PtiGUgydN!koM03W1%ljEpx zJC{|}#?{=-PWFtna;`BiaRJQ>ys=rQtr7a1-kbbgqH`B^ovKp!#b{SMWmR zr=Jr0S_v}R*qA5t@3OrCOI|m^i0fa(t%Y7;5<5lnb<`1eBEmLrImPN5?m}g(cWSazfKw?zVGiAPIgyYQbbCFuk7#ocjz=0Q15~9qj))M_Ka` LN#hQf5Z!9_x}@Av literal 0 HcmV?d00001 From e78895916fa550546ed894f0511a25a5b0710451 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 00:54:30 -0400 Subject: [PATCH 05/10] Rename Pinebook --- flake.nix | 4 ++-- hosts/shuttleworth/system/default.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index ee2ed99..ba096b8 100644 --- a/flake.nix +++ b/flake.nix @@ -67,7 +67,7 @@ # nixos-rebuild switch --flake .#hostname nixosConfigurations = { firefly = mkNix [ ./hosts/firefly/system ]; # Main Desktop - shuttleworth = mkNix [ ./hosts/shuttleworth/system ]; # Pinebook Pro + shuttle = mkNix [ ./hosts/shuttleworth/system ]; # Pinebook Pro lacros = mkNix [ ./hosts/lacros/system ]; # Dell Chromebook redmond = mkNix [ ./hosts/redmond/system ]; # Lenovo Laptop treefruit = mkNix [ ./hosts/treefruit/system ]; # Macbook 14,1 @@ -79,7 +79,7 @@ # home-manager switch --flake .#username@hostname homeConfigurations = { "jimbo@firefly" = mkHome [ ./hosts/firefly/home ] nixpkgs.legacyPackages.x86_64-linux; - "jimbo@shuttleworth" = mkHome [ ./hosts/shuttleworth/home ] nixpkgs.legacyPackages.aarch64-linux; + "jimbo@shuttle" = mkHome [ ./hosts/shuttleworth/home ] nixpkgs.legacyPackages.aarch64-linux; "jimbo@lacros" = mkHome [ ./hosts/lacros/home ] nixpkgs.legacyPackages.x86_64-linux; "jimbo@redmond" = mkHome [ ./hosts/redmond/home ] nixpkgs.legacyPackages.x86_64-linux; "jimbo@treefruit" = mkHome [ ./hosts/treefruit/home ] nixpkgs.legacyPackages.x86_64-linux; diff --git a/hosts/shuttleworth/system/default.nix b/hosts/shuttleworth/system/default.nix index 06ca1a7..29a3ed1 100644 --- a/hosts/shuttleworth/system/default.nix +++ b/hosts/shuttleworth/system/default.nix @@ -26,7 +26,7 @@ hardware.nixosModules.pine64-pinebook-pro ]; - networking.hostName = "shuttleworth"; + networking.hostName = "shuttle"; hardware.opengl.driSupport32Bit = lib.mkForce false; networking.wireguard.interfaces."${config.ips.wgInt}".ips = [ "${config.ips.wgSpan}.17/24" ]; } From 2550c9b1953532c0a7e0e4b57f60b1292583596c Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 02:57:53 -0400 Subject: [PATCH 06/10] Add zsh vim bindings, change the MPC data, hotkey changes --- modules/home/sway/waybar/default.nix | 2 +- modules/home/utils/zsh/default.nix | 3 ++- modules/system/services/pc/keyd/default.nix | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/home/sway/waybar/default.nix b/modules/home/sway/waybar/default.nix index c3e0629..f7f400a 100644 --- a/modules/home/sway/waybar/default.nix +++ b/modules/home/sway/waybar/default.nix @@ -146,7 +146,7 @@ exec-if = "mpc status | grep -q '^\\[playing\\] \\|^\\[paused\\]'"; exec = pkgs.writeScript "mpvMetadata" '' get_metadata() { - mpc --format "%file%" | head -n 1 | sed -E 's/\.(mp3|mp4|m4a|mov|flac|opus|oga)$//; s/&/&/g' + mpc | head -n 1 } truncate_string() { diff --git a/modules/home/utils/zsh/default.nix b/modules/home/utils/zsh/default.nix index dbef8a8..9b04257 100644 --- a/modules/home/utils/zsh/default.nix +++ b/modules/home/utils/zsh/default.nix @@ -7,7 +7,7 @@ oh-my-zsh = { enable = true; theme = "agnoster"; - plugins = ["git"]; + plugins = [ "git" ]; }; shellAliases = { # NixOS aliases @@ -46,6 +46,7 @@ spotdl = "spotdl --m3u --format opus"; }; initExtra = '' + source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh ${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin; pfetch setopt HIST_IGNORE_SPACE setopt RM_STAR_WAIT diff --git a/modules/system/services/pc/keyd/default.nix b/modules/system/services/pc/keyd/default.nix index b71dc61..ed48904 100644 --- a/modules/system/services/pc/keyd/default.nix +++ b/modules/system/services/pc/keyd/default.nix @@ -22,6 +22,7 @@ j = "down"; k = "up"; l = "right"; + g = "macro(C-h)"; semicolon = "macro(C-l)"; }; From 4f43498d0f8e775a4a80efeb0d3385ce0ec71fca Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 04:48:09 -0400 Subject: [PATCH 07/10] Change theme and fix invisible characters --- hosts/treefruit/home/default.nix | 2 +- hosts/treefruit/system/boot/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/treefruit/home/default.nix b/hosts/treefruit/home/default.nix index 769a875..074429f 100644 --- a/hosts/treefruit/home/default.nix +++ b/hosts/treefruit/home/default.nix @@ -17,7 +17,7 @@ # Misc ../../../overlays ../../../variables - ../../../variables/look/colors/orange + ../../../variables/look/colors/green # Imports nur.nixosModules.nur diff --git a/hosts/treefruit/system/boot/default.nix b/hosts/treefruit/system/boot/default.nix index 90ff8e8..b88ae29 100644 --- a/hosts/treefruit/system/boot/default.nix +++ b/hosts/treefruit/system/boot/default.nix @@ -2,7 +2,7 @@ { boot = { kernelPackages = pkgs.linuxPackages_latest; - kernel.sysctl."vm.max_map_count" = 2147483642; + kernel.sysctl."vm.max_map_count" = 2147483642; initrd = { systemd.enable = true; luks.devices = { From 8008d7812d80a102c6f7528bf2fc5a4e1e78bfce Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 16:44:04 -0400 Subject: [PATCH 08/10] Rename whatnot --- modules/system/services/server/webhost/default.nix | 1 - .../system/services/server/webhost/virtualhosts/default.nix | 2 +- .../virtualhosts/{jimDomain => jimDomain1}/default.nix | 4 ---- 3 files changed, 1 insertion(+), 6 deletions(-) rename modules/system/services/server/webhost/virtualhosts/{jimDomain => jimDomain1}/default.nix (89%) diff --git a/modules/system/services/server/webhost/default.nix b/modules/system/services/server/webhost/default.nix index a34929f..eaab380 100644 --- a/modules/system/services/server/webhost/default.nix +++ b/modules/system/services/server/webhost/default.nix @@ -2,7 +2,6 @@ { imports = [ ./nginx - ./rtmp ./virtualhosts ]; } diff --git a/modules/system/services/server/webhost/virtualhosts/default.nix b/modules/system/services/server/webhost/virtualhosts/default.nix index 33e6bd3..fa8df4b 100644 --- a/modules/system/services/server/webhost/virtualhosts/default.nix +++ b/modules/system/services/server/webhost/virtualhosts/default.nix @@ -1,6 +1,6 @@ { ... }: { imports = [ - ./jimDomain + ./jimDomain1 ]; } diff --git a/modules/system/services/server/webhost/virtualhosts/jimDomain/default.nix b/modules/system/services/server/webhost/virtualhosts/jimDomain1/default.nix similarity index 89% rename from modules/system/services/server/webhost/virtualhosts/jimDomain/default.nix rename to modules/system/services/server/webhost/virtualhosts/jimDomain1/default.nix index be8e6e5..034bc79 100644 --- a/modules/system/services/server/webhost/virtualhosts/jimDomain/default.nix +++ b/modules/system/services/server/webhost/virtualhosts/jimDomain1/default.nix @@ -32,8 +32,4 @@ }; }; }; - - systemd.services.nginx.serviceConfig = { - ReadWritePaths = [ "/var/www/Jimbo-Landing-Page/streams/hls/" ]; - }; } From f85d7eb3e90f06be316353227bcf5ee8b9a03091 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 16:46:50 -0400 Subject: [PATCH 09/10] Remove unnecessary plugin --- modules/home/programs/gui/librewolf/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/home/programs/gui/librewolf/default.nix b/modules/home/programs/gui/librewolf/default.nix index 83f1ef2..ed6ed67 100644 --- a/modules/home/programs/gui/librewolf/default.nix +++ b/modules/home/programs/gui/librewolf/default.nix @@ -294,7 +294,7 @@ in { sponsorblock return-youtube-dislikes simple-tab-groups - no-pdf-download + vimium ]; commonSearch = { force = true; From 1e1a93cf2ff874e14c2c146b2335afab6a06762a Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 27 Oct 2024 17:25:37 -0400 Subject: [PATCH 10/10] Fix syntaxing issue --- modules/system/services/pc/keyd/default.nix | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/modules/system/services/pc/keyd/default.nix b/modules/system/services/pc/keyd/default.nix index ed48904..20e30cf 100644 --- a/modules/system/services/pc/keyd/default.nix +++ b/modules/system/services/pc/keyd/default.nix @@ -26,21 +26,21 @@ semicolon = "macro(C-l)"; }; - ctrlmod = { - backspace = "delete"; - "1" = "f1"; - "2" = "f2"; - "3" = "f3"; - "4" = "f4"; - "5" = "f5"; - "6" = "f6"; - "7" = "f7"; - "8" = "f8"; - "9" = "f9"; - "0" = "f10"; - "-" = "f11"; - "=" = "f12"; - }; + ctrlmod = { + backspace = "delete"; + "1" = "f1"; + "2" = "f2"; + "3" = "f3"; + "4" = "f4"; + "5" = "f5"; + "6" = "f6"; + "7" = "f7"; + "8" = "f8"; + "9" = "f9"; + "0" = "f10"; + "-" = "f11"; + "=" = "f12"; + }; }; }; };