Kieran's opinionated (and probably slightly dumb) nix config

chore: make home manager a module

+17 -12
-12
flake.nix
··· 31 31 modules = [./moonlark/configuration.nix]; 32 32 }; 33 33 }; 34 - 35 - # Standalone home-manager configuration entrypoint 36 - # Available through 'home-manager --flake .#your-username@your-hostname' 37 - homeConfigurations = { 38 - # FIXME replace with your username@hostname 39 - "kierank@moonlark" = home-manager.lib.homeManagerConfiguration { 40 - pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance 41 - extraSpecialArgs = {inherit inputs outputs;}; 42 - # > Our main home-manager configuration file < 43 - modules = [./home-manager/home.nix]; 44 - }; 45 - }; 46 34 }; 47 35 }
+3
moonlark/configuration.nix
··· 14 14 15 15 # Import your generated (nixos-generate-config) hardware configuration 16 16 ./hardware-configuration.nix 17 + 18 + # Import home-manager's configuration 19 + ./home-manager.nix 17 20 ]; 18 21 19 22 nixpkgs = {
+14
moonlark/home-manager.nix
··· 1 + { inputs, outputs, ... }: { 2 + imports = [ 3 + # Import home-manager's NixOS module 4 + inputs.home-manager.nixosModules.home-manager 5 + ]; 6 + 7 + home-manager = { 8 + extraSpecialArgs = { inherit inputs outputs; }; 9 + users = { 10 + # Import your home-manager configuration 11 + kierank = import ../home-manager/home.nix; 12 + }; 13 + }; 14 + }