diff --git a/flake.lock b/flake.lock index 4107ca5..3afdbc1 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,24 @@ { "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1732319136, + "narHash": "sha256-wpmPl6FkAF9Jj5C/rzANgpUjfzQrUYOn267LnzKU2uI=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "f8831cc700030e11fc91da9ef6270593e6440edc", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-24.11", + "repo": "home-manager", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1731755305, @@ -16,9 +35,26 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1731755305, + "narHash": "sha256-v5P3dk5JdiT+4x69ZaB18B8+Rcu3TIOrcdG4uEX7WZ8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "057f63b6dc1a2c67301286152eb5af20747a9cb4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, "root": { "inputs": { - "nixpkgs": "nixpkgs" + "home-manager": "home-manager", + "nixpkgs": "nixpkgs_2" } } }, diff --git a/flake.nix b/flake.nix index f6fb9c5..f29f392 100644 --- a/flake.nix +++ b/flake.nix @@ -1,9 +1,10 @@ { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + home-manager.url = "github:nix-community/home-manager/release-24.11"; }; - outputs = inputs @ { self, nixpkgs }: { + outputs = inputs @ { self, nixpkgs, ... }: { nixosConfigurations.affogato = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ diff --git a/hosts/affogato/default.nix b/hosts/affogato/default.nix index 730db95..9f07283 100644 --- a/hosts/affogato/default.nix +++ b/hosts/affogato/default.nix @@ -5,6 +5,7 @@ ../../profiles/base ../../profiles/graphical ../../profiles/kde + ../../profiles/home-manager ../../users/transcaffeine ../../users/leona ]; diff --git a/profiles/home-manager/default.nix b/profiles/home-manager/default.nix new file mode 100644 index 0000000..86bf895 --- /dev/null +++ b/profiles/home-manager/default.nix @@ -0,0 +1,5 @@ +{ inputs, config, pkgs, ... }: { + imports = [ inputs.home-manager.nixosModules.home-manager ]; + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; +}