updates home manager config
This commit is contained in:
parent
2c8c977d28
commit
d44b7ebdaa
4 changed files with 26 additions and 39 deletions
25
modules/home-manager/default.nix
Normal file
25
modules/home-manager/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ inputs, config, ... }:
|
||||
let
|
||||
username = config.flake.globalConfig.username;
|
||||
hmConfig = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
backupFileExtension = "backup";
|
||||
users.${username}.home.stateVersion = "24.11";
|
||||
};
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.home-manager =
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
home-manager = hmConfig;
|
||||
};
|
||||
|
||||
flake.modules.darwin.home-manager =
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ inputs.home-manager.darwinModules.home-manager ];
|
||||
home-manager = hmConfig;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue