feat: add home-manager

This commit is contained in:
transcaffeine 2024-11-27 20:33:16 +01:00
parent 93cdfb5be5
commit f9b964d69a
Signed by: transcaffeine
GPG Key ID: 03624C433676E465
4 changed files with 45 additions and 2 deletions

38
flake.lock generated
View File

@ -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"
}
}
},

View File

@ -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 = [

View File

@ -5,6 +5,7 @@
../../profiles/base
../../profiles/graphical
../../profiles/kde
../../profiles/home-manager
../../users/transcaffeine
../../users/leona
];

View File

@ -0,0 +1,5 @@
{ inputs, config, pkgs, ... }: {
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}