chore: improved hm setup

This commit is contained in:
Patrick Großmann 2023-06-02 17:40:22 +09:00
parent 518736f49f
commit 12dc730dd5
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
3 changed files with 12 additions and 13 deletions

View file

@ -1,4 +1,8 @@
{
impermanence,
stateVersion,
...
}: {
imports = [
./inputrc.nix
./issue.nix
@ -16,6 +20,12 @@
useGlobalPkgs = true;
useUserPackages = true;
verbose = true;
sharedModules = [
{
home.stateVersion = stateVersion;
}
impermanence.home-manager.impermanence
];
};
# HM zsh needs this or else the startup order is fucked
# and env variables will be loaded incorrectly

View file

@ -1,9 +1,7 @@
{
hyprland,
impermanence,
pkgs,
config,
stateVersion,
...
}: {
# TODO: only import this if the current host is a nixos host
@ -27,10 +25,8 @@
gnome3.adwaita-icon-theme
];
home-manager.users.patrick = {
home.stateVersion = stateVersion;
imports = [
hyprland.homeManagerModules.default
impermanence.home-manager.impermanence
./patrick.nix
../common
];

View file

@ -1,8 +1,6 @@
{
pkgs,
config,
impermanence,
stateVersion,
...
}: {
users.users.root = {
@ -13,11 +11,6 @@
];
hashedPassword = config.secrets.secrets.global.users.root.passwordHash;
};
home-manager.users.root = {
home.stateVersion = stateVersion;
imports = [
../common
impermanence.home-manager.impermanence
];
};
# the user needs to exists
home-manager.users.root.imports = [../common];
}