treewide: move hm config to config/nixos/core/home-manager

This commit is contained in:
Anthony Rodriguez 2024-12-29 23:22:25 +01:00
parent 1dc4024973
commit fe83d5f557
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
6 changed files with 35 additions and 24 deletions

View file

@ -1,14 +1,7 @@
{osConfig, ...}: {
_: {
imports = [
./services/udiskie.nix
./terminal
./programs
];
home = rec {
inherit (osConfig.local.systemVars) username;
homeDirectory = "/home/${username}";
stateVersion = "24.05";
};
programs.home-manager.enable = true;
}

View file

@ -0,0 +1,31 @@
{
config,
inputs,
...
}: let
inherit (config.local.systemVars) username;
in {
imports = [
inputs.home-manager.nixosModules.default
];
home-manager = {
backupFileExtension = "backup";
useGlobalPkgs = true;
useUserPackages = true;
};
home-manager.users.${username} = {
home = {
homeDirectory = "/home/${username}";
stateVersion = "24.05";
};
programs.home-manager.enable = true;
};
programs = {
# make HM-managed GTK stuff work
dconf.enable = true;
};
}

View file

@ -1,10 +1,5 @@
{
imports = [
./fonts.nix
./home-manager.nix
];
programs = {
# make HM-managed GTK stuff work
dconf.enable = true;
};
}

View file

@ -1,11 +0,0 @@
{inputs, ...}: {
imports = [
inputs.home-manager.nixosModules.default
];
home-manager = {
backupFileExtension = "backup";
useGlobalPkgs = true;
useUserPackages = true;
};
}

View file

@ -22,6 +22,8 @@ in {
./config/theme.nix
nixos
"${nixos}/core/home-manager.nix"
"${nixos}/hardware/uni-sync.nix"
"${nixos}/services/logind.nix"

View file

@ -22,6 +22,7 @@ in {
"${nixos}"
"${nixos}/core/lanzaboote.nix"
"${nixos}/core/home-manager.nix"
"${nixos}/hardware/fprintd.nix"
"${nixos}/hardware/mcuxpresso.nix"