From 4eaf76cf1e0af9ec7a630320bb7d4956041dd03e Mon Sep 17 00:00:00 2001 From: sils Date: Thu, 4 May 2023 18:17:38 +0200 Subject: Structure(treewide): Use new structure with home-manager home-manager enables great possibilities and is part of simplifying the structure of my config. --- flake.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'flake.nix') 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;}; + } + ]; }; }; } -- cgit 1.4.1