This commit is contained in:
parent
a0575bdb2a
commit
703bf836de
210 changed files with 1 additions and 1 deletions
14
modules/home-manager/base.nix
Normal file
14
modules/home-manager/base.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
flake.modules.homeManager.base = args: {
|
||||
home = {
|
||||
homeDirectory = "/home/${config.flake.meta.owner.username}";
|
||||
username = config.flake.meta.owner.username;
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
systemd.user.startServices = "sd-switch";
|
||||
};
|
||||
}
|
38
modules/home-manager/nixos.nix
Normal file
38
modules/home-manager/nixos.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
flake.modules.nixos = {
|
||||
pc = {
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
|
||||
home-manager = {
|
||||
extraSpecialArgs.hasGlobalPkgs = true;
|
||||
useGlobalPkgs = true;
|
||||
|
||||
# https://github.com/nix-community/home-manager/issues/6770
|
||||
# useUserPackages = true;
|
||||
|
||||
users.${config.flake.meta.owner.username}.imports = [
|
||||
(
|
||||
{ osConfig, ... }:
|
||||
|
||||
{
|
||||
home.stateVersion = lib.mkForce osConfig.system.stateVersion;
|
||||
}
|
||||
)
|
||||
|
||||
config.flake.modules.homeManager.base
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
desktop.home-manager.users.${config.flake.meta.owner.username}.imports = [
|
||||
config.flake.modules.homeManager.gui
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue