chore: improved hm setup
This commit is contained in:
parent
518736f49f
commit
12dc730dd5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue