Add multi-user support for various applications and services
Enhanced the configuration files to support multi-user management by introducing user options for multiple applications, including art, gaming, multimedia, and development tools. Updated existing modules to utilize these new user options, improving flexibility and maintainability in user package installations.
This commit is contained in:
@@ -5,6 +5,32 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
my = {
|
||||
apps = {
|
||||
art.enable = true;
|
||||
art.users = "bearded_dragonn";
|
||||
fonts.enable = true;
|
||||
fonts.users = "bearded_dragonn";
|
||||
gaming.enable = true;
|
||||
gaming.users = "bearded_dragonn";
|
||||
};
|
||||
dev = {
|
||||
nix.enable = true;
|
||||
nix.users = "bearded_dragonn";
|
||||
python.enable = true;
|
||||
python.users = "bearded_dragonn";
|
||||
sh.enable = true;
|
||||
sh.users = "bearded_dragonn";
|
||||
};
|
||||
shell = {
|
||||
exercism.enable = true;
|
||||
exercism.users = "bearded_dragonn";
|
||||
tools.enable = true;
|
||||
tools.users = "bearded_dragonn";
|
||||
multimedia.enable = true;
|
||||
multimedia.users = "bearded_dragonn";
|
||||
};
|
||||
};
|
||||
sops.secrets = lib.mkIf config.my.secureHost {
|
||||
derek-password.neededForUsers = true;
|
||||
};
|
||||
@@ -44,4 +70,5 @@
|
||||
"games"
|
||||
];
|
||||
};
|
||||
home-manager.users.bearded_dragonn.home.stateVersion = "23.05";
|
||||
}
|
||||
|
||||
@@ -14,7 +14,14 @@ let
|
||||
gnomeEnabled = config.services.desktopManager.gnome.enable;
|
||||
in
|
||||
{
|
||||
options.my.stylix.enable = lib.mkEnableOption "system-wide theming with Stylix";
|
||||
options.my.stylix = {
|
||||
enable = lib.mkEnableOption "system-wide theming with Stylix";
|
||||
users = lib.mkOption {
|
||||
type = lib.types.either lib.types.str (lib.types.listOf lib.types.str);
|
||||
default = config.my.toggleUsers.stylix;
|
||||
description = "Users to apply Stylix theming for";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
stylix = {
|
||||
inherit (scheme) image polarity;
|
||||
@@ -23,7 +30,7 @@ in
|
||||
targets.qt.platform = lib.mkForce "qtct";
|
||||
}
|
||||
// lib.optionalAttrs (scheme ? base16Scheme) { inherit (scheme) base16Scheme; };
|
||||
home-manager.users = inputs.self.lib.mkHomeManagerUsers lib config.my.toggleUsers.stylix (user: {
|
||||
home-manager.users = inputs.self.lib.mkHomeManagerUsers lib config.my.stylix.users (user: {
|
||||
gtk = lib.mkIf (!cfg.enable && gnomeEnabled) {
|
||||
enable = true;
|
||||
iconTheme = {
|
||||
|
||||
Reference in New Issue
Block a user