NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(hosts): make home-manager setup for NixOS easier

aka converting the import stuff at `home-manager.users.gildedguy` to a full blown module import

authored by andreijiroh.dev and committed by

GitHub bfa0319a bb391415

+23 -65
+1 -3
hosts/lairland/configuration.nix
··· 39 39 ../../shared/server/tailscale.nix 40 40 ../../shared/server/devenv.nix 41 41 ../../shared/server/cockpit.nix 42 + ./users/ajhalili2006.nix 42 43 ]; 43 44 44 45 # Bootloader. ··· 107 108 ]; 108 109 linger = true; 109 110 }; 110 - 111 - # home-manager 112 - home-manager.users.ajhalili2006 = import ./users/ajhalili2006.nix; 113 111 114 112 # Some programs need SUID wrappers, can be configured further or are 115 113 # started in user sessions.
+10 -7
hosts/lairland/users/ajhalili2006.nix
··· 1 1 { config, pkgs, lib, zen-browser, ... }: 2 2 3 3 { 4 - imports = [ 5 - ../../../shared/home-manager/main.nix 6 - zen-browser.homeModules.beta 7 - ]; 4 + # see ../../stellapent-cier/users/gildedguy.nix for context 5 + home-manager.users.ajhalili2006 = { 6 + imports = [ 7 + ../../../shared/home-manager/main.nix 8 + zen-browser.homeModules.beta 9 + ]; 8 10 9 - home.username = "ajhalili2006"; 10 - home.homeDirectory = "/home/ajhalili2006"; 11 - } 11 + home.username = "ajhalili2006"; 12 + home.homeDirectory = "/home/ajhalili2006"; 13 + }; 14 + }
+1 -47
hosts/stellapent-cier/configuration.nix
··· 40 40 ../../shared/server/tailscale.nix 41 41 ../../shared/server/devenv.nix 42 42 ../../shared/server/cockpit.nix 43 + ./users/gildedguy.nix 43 44 ]; 44 45 45 46 # Bootloader ··· 58 59 59 60 # portable setup 60 61 boot.initrd.kernelModules = [ "usb_storage" ]; 61 - #boot.initrd.preDeviceCommands = '' 62 - # check_root_device() { 63 - # ROOT_UUID="09170382-8b7e-47cc-8fde-d9035039b785" 64 - # 65 - # # 'test -e' checks if the file/device node exists 66 - # if test -e "/dev/disk/by-uuid/$ROOT_UUID"; then 67 - # return 0 # Success 68 - # else 69 - # return 1 # Failure 70 - # fi 71 - # } 72 - # 73 - # found() { 74 - # echo "Device found, continuing boot..." 75 - # exit 0 76 - # } 77 - # 78 - # if ! check_root_device; then 79 - # echo "Root device not found, retrying in 5 seconds..." 80 - # sleep 5 81 - # else 82 - # found 83 - # fi 84 - # 85 - # if ! check_root_device; then 86 - # echo "Root device not found, retrying in 10 seconds..." 87 - # sleep 10 88 - # else 89 - # found 90 - # fi 91 - # 92 - # if ! check_root_device; then 93 - # echo "Root device not found, retrying for last time in 20 seconds..." 94 - # sleep 20 95 - # else 96 - # found 97 - # fi 98 - # 99 - # 100 - # if ! check_root_device; then 101 - # echo "WARNING: Boot device not found, proceeding with caution." 102 - # else 103 - # found 104 - # fi 105 - #''; 106 62 107 63 networking = { 108 64 hostName = "stellapent-cier"; ··· 177 133 linger = true; 178 134 179 135 }; 180 - home-manager.users.gildedguy = import ./users/gildedguy.nix; 181 - #programs.home-manager.enable = true; # allow home-manager to manage itself 182 136 183 137 # logind adjustments for this laptop to run as a headless server while 184 138 # the lid is closed.
+11 -8
hosts/stellapent-cier/users/gildedguy.nix
··· 1 - { config, pkgs, lib, home-manager, ... }: 1 + { config, pkgs, lib, zen-browser, ... }: 2 2 3 3 { 4 - imports = [ 5 - ../../../shared/home-manager/main.nix 6 - zen-browser.homeModules.beta 7 - ]; 4 + # This now configures the 'gildedguy' user within the NixOS module system 5 + home-manager.users.gildedguy = { 6 + imports = [ 7 + ../../../shared/home-manager/main.nix 8 + zen-browser.homeModules.beta 9 + ]; 8 10 9 - home.username = "gildedguy"; 10 - home.homeDirectory = "/home/gildedguy"; 11 - } 11 + home.username = "gildedguy"; 12 + home.homeDirectory = "/home/gildedguy"; 13 + }; 14 + }