Hyprland module

This commit is contained in:
outfoxxed 2023-06-22 01:04:50 -07:00
parent 30184feda2
commit 2f1b04728d
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
8 changed files with 436 additions and 19 deletions

View file

@ -8,9 +8,9 @@ in {
./general.nix
];
options.user = lib.mkOption {
type = with lib.types; attrsOf anything;
default = {};
options.main-user = lib.mkOption {
type = lib.types.str;
default = username;
};
config = {
@ -65,22 +65,15 @@ in {
# use system nixpkgs instead of home-manager nixpkgs
useGlobalPkgs = true;
users.${username} = config.user;
};
users.${username} = {
home = {
inherit username homeDirectory;
stateVersion = config.system.stateVersion;
};
# pass the user config as a system module argument
_module.args = {
homeConfig = config.home-manager.users.${username};
};
user = {
home = {
inherit username homeDirectory;
stateVersion = config.system.stateVersion;
# enable xdg dir management
xdg.enable = true;
};
# enable xdg dir management
xdg.enable = true;
};
};
}