Add first implementation of home-manager
This commit is contained in:
parent
bf6d3fb257
commit
e06b409221
2 changed files with 42 additions and 0 deletions
20
flake.nix
20
flake.nix
|
|
@ -5,6 +5,9 @@
|
|||
nix-darwin.url = "github:nix-darwin/nix-darwin?ref=nix-darwin-25.11";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager?ref=release-25.11";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
lanzaboote.url = "github:nix-community/lanzaboote?ref=master";
|
||||
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
|
@ -39,6 +42,23 @@
|
|||
nixosConfigurations."persephone" = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
(
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
(lib.mkAliasOptionModule [ "hm" ] [ "home-manager" "users" "${config.machine.mainUser}" ])
|
||||
];
|
||||
}
|
||||
)
|
||||
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
hm.programs.bat.enable = true;
|
||||
hm.home.stateVersion = "25.11";
|
||||
}
|
||||
|
||||
./machines/persephone.nix
|
||||
(
|
||||
{ lib, ... }:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue