diff options
author | sils <sils@sils.li> | 2023-05-04 18:17:38 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-05-04 18:17:38 +0200 |
commit | 4eaf76cf1e0af9ec7a630320bb7d4956041dd03e (patch) | |
tree | 4073ad033ef5f0939e76bb82a75847b34ca4bba9 /flake.nix | |
parent | Chore(flake): Update (diff) | |
download | nix-config-4eaf76cf1e0af9ec7a630320bb7d4956041dd03e.tar.gz nix-config-4eaf76cf1e0af9ec7a630320bb7d4956041dd03e.zip |
Structure(treewide): Use new structure with home-manager
home-manager enables great possibilities and is part of simplifying the structure of my config.
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix index 3b08173..7e892be 100644 --- a/flake.nix +++ b/flake.nix @@ -12,11 +12,22 @@ nixpkgs, home-manager, ... - } @ attrs: { + } @ attrs: let + system = "86_64-linux"; + in { nixosConfigurations.thinklappi = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; + inherit system; specialArgs = attrs; - modules = [./hosts/thinklappi]; + modules = [ + ./hosts/thinklappi + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.sils = import ./users/sils; + home-manager.extraSpecialArgs = {inherit nixpkgs system;}; + } + ]; }; }; } |