diff --git a/flake.lock b/flake.lock index bd4893e..0e3744b 100644 --- a/flake.lock +++ b/flake.lock @@ -38,6 +38,28 @@ "type": "github" } }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "ppetru-home", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1720042825, + "narHash": "sha256-A0vrUB6x82/jvf17qPCpxaM+ulJnD8YZwH9Ci0BsAzE=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "e1391fb22e18a36f57e6999c7a9f966dc80ac073", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-24.05", + "repo": "home-manager", + "type": "github" + } + }, "impermanence": { "locked": { "lastModified": 1719091691, @@ -85,12 +107,34 @@ "type": "github" } }, + "ppetru-home": { + "inputs": { + "home-manager": "home-manager", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1722328048, + "narHash": "sha256-hQqp+sNQUcgH3DeIstuLPLBdqI7ORY+e8fBAxmIpfWA=", + "ref": "refs/heads/master", + "rev": "73f3f28b13c7773153be6889a849fc4e0727ab09", + "revCount": 3, + "type": "git", + "url": "file:../ppetru-home" + }, + "original": { + "type": "git", + "url": "file:../ppetru-home" + } + }, "root": { "inputs": { "deploy-rs": "deploy-rs", "impermanence": "impermanence", "nixpkgs": "nixpkgs", - "nixpkgs-unstable": "nixpkgs-unstable" + "nixpkgs-unstable": "nixpkgs-unstable", + "ppetru-home": "ppetru-home" } }, "systems": { diff --git a/flake.nix b/flake.nix index 60783d8..cee430f 100644 --- a/flake.nix +++ b/flake.nix @@ -7,9 +7,13 @@ impermanence.url = "github:nix-community/impermanence"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + ppetru-home = { + url = "git+file:../ppetru-home"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { self, nixpkgs, nixpkgs-unstable, deploy-rs, ... }@inputs: + outputs = { self, nixpkgs, nixpkgs-unstable, deploy-rs, ppetru-home, ... }@inputs: let inherit (self); @@ -76,9 +80,15 @@ }; zippy = { hostname = "zippy"; - profiles.system = { - user = "root"; - path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.zippy; + profiles = { + system = { + user = "root"; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.zippy; + }; + ppetru = { + user = "ppetru"; + path = deploy-rs.lib.x86_64-linux.activate.home-manager ppetru-home.homeConfigurations.ppetru; + }; }; }; };