my system configurations ^-^
0
fork

Configure Feed

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

feat: broken

willow e9f8f91b 2600f886

+54 -40
+19 -19
flake.nix
··· 8 8 url = "github:nix-community/home-manager"; 9 9 inputs.nixpkgs.follows = "nixpkgs"; 10 10 }; 11 - schizofox = { 11 + schizofox = { 12 12 url = "github:schizofox/schizofox"; 13 13 inputs.nixpkgs.follows = "nixpkgs"; 14 14 }; 15 15 # inputs.spicetify-nix.url = "github:the-argus/spicetify-nix"; 16 16 }; 17 17 18 - outputs = inputs@{ self, nixpkgs, home-manager, catppuccin, ... }: { 18 + outputs = { self, nixpkgs, home-manager, catppuccin, ... } @ inputs: 19 + let 20 + username = "willow"; 21 + system = "x86_64-linux"; 22 + pkgs = import nixpkgs { 23 + inherit system; 24 + config.allowUnfree = true; 25 + }; 26 + lib = nixpkgs.lib; 27 + in 28 + { 19 29 nixosConfigurations = { 20 30 earthy = nixpkgs.lib.nixosSystem { 21 - system = "x86_64-linux"; 31 + inherit system; 22 32 modules = [ 23 - ./hosts/earthy/configuration.nix 24 - catppuccin.nixosModules.catppuccin 25 - home-manager.nixosModules.home-manager 26 - { 27 - home-manager = { 28 - useGlobalPkgs = true; 29 - useUserPackages = true; 30 - extraSpecialArgs = { inherit catppuccin; }; 31 - users.willow.imports = [ 32 - ./home.nix 33 - catppuccin.homeManagerModules.catppuccin 34 - inputs.schizofox.homeManagerModule 35 - ]; 36 - }; 37 - } 38 - ]; 33 + (import ./hosts/earthy) 34 + catppuccin.nixosModules.catppuccin 35 + # if you use home-manager 36 + home-manager.nixosModules.home-manager 37 + ]; 38 + specialArgs = { host="earthy"; inherit self inputs username ; }; 39 39 }; 40 40 }; 41 41 };
-15
home.nix modules/home/default.nix
··· 64 64 65 65 nixpkgs.config.allowUnfree = true; 66 66 67 - # Home Manager needs a bit of information about you and the paths it should 68 - # manage. 69 - home.username = "willow"; 70 - home.homeDirectory = "/home/willow"; 71 - 72 - # This value determines the Home Manager release that your configuration is 73 - # compatible with. This helps avoid breakage when a new Home Manager release 74 - # introduces backwards incompatible changes. 75 - # 76 - # You should not change this value, even if you update Home Manager. If you do 77 - # want to update the value, then make sure to first check the Home Manager 78 - # release notes. 79 - home.stateVersion = "24.05"; # Please read the comment before changing. 80 - 81 67 home.activation = { 82 68 # https://github.com/philj56/tofi/issues/115#issuecomment-1701748297 83 69 regenerateTofiCache = lib.hm.dag.entryAfter [ "writeBoundary" ] '' ··· 183 169 }; 184 170 185 171 # Let Home Manager install and manage itself. 186 - programs.home-manager.enable = true; 187 172 }
+6 -6
hosts/earthy/configuration.nix hosts/earthy/default.nix
··· 5 5 { pkgs, config, catppuccin, ... }: 6 6 7 7 { 8 + imports = [ # Include the results of the hardware scan. 9 + ./hardware-configuration.nix 10 + ./../../modules/core 11 + ]; 12 + 8 13 catppuccin = { 9 14 flavor = "macchiato"; 10 15 accent = "pink"; ··· 16 21 enable = true; 17 22 }; 18 23 }; 19 - 20 - imports = 21 - [ # Include the results of the hardware scan. 22 - ./hardware-configuration.nix 23 - # inputs.home-manager.nixosModules.default 24 - ]; 25 24 26 25 # Bootloader. 27 26 boot.loader = { ··· 133 132 git 134 133 nh 135 134 polkit_gnome 135 + home-manager 136 136 ]; 137 137 }; 138 138
+6
modules/core/default.nix
··· 1 + { inputs, nixpkgs, self, username, host, ...}: 2 + { 3 + imports = 4 + [ (import ./user.nix) ]; 5 + # ++ [ (import ./user.nix) ] 6 + }
+23
modules/core/user.nix
··· 1 + { pkgs, inputs, username, ...}: 2 + { 3 + imports = [ inputs.home-manager.nixosModules.home-manager ]; 4 + home-manager = { 5 + useUserPackages = true; 6 + useGlobalPkgs = true; 7 + extraSpecialArgs = { inherit inputs username; }; 8 + users.${username} = { 9 + imports = [ ./../home ]; 10 + home.username = "${username}"; 11 + home.homeDirectory = "/home/${username}"; 12 + home.stateVersion = "24.05"; 13 + programs.home-manager.enable = true; 14 + }; 15 + }; 16 + 17 + users.users.${username} = { 18 + isNormalUser = true; 19 + description = "${username}"; 20 + extraGroups = [ "networkmanager" "wheel" ]; 21 + }; 22 + nix.settings.allowed-users = [ "${username}" ]; 23 + }