From c9f5b944876de472fb309dbf669d9f0a95dd404b Mon Sep 17 00:00:00 2001 From: panotaka Date: Sat, 25 Nov 2023 22:47:06 -0400 Subject: [PATCH] Fixed home-manager --- flake.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index b5ae684..793d6cc 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,12 @@ }; outputs = - inputs@{ self, nixpkgs, home-manager, ... }: { + inputs@{ self, nixpkgs, home-manager, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { nixosConfigurations = { /* nixos-test = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -53,15 +58,15 @@ }; }; + homeConfigurations.panotaka = home-manager.lib.homeManagerConfiguration { - homeDirectory = "/home/panotaka"; - configuration = { pkgs, ... }: { - imports = [ - ./home - ./home/shell - ]; - }; + inherit pkgs; + + modules = [ + ./home + ./home/shell + ]; }; }; }