Hyprland module
This commit is contained in:
parent
30184feda2
commit
2f1b04728d
8 changed files with 436 additions and 19 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ pkgs, homeConfig, ... }: {
|
||||
user = {
|
||||
{ pkgs, config, ... }: {
|
||||
home-manager.users.${config.main-user} = {
|
||||
home.packages = with pkgs; [
|
||||
ark
|
||||
kwrite
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue