feat: added support for custom shells in alqueva.users

This commit is contained in:
Artur Manuel 2024-12-14 11:14:51 +00:00
commit 3af3b5dbc4
4 changed files with 9 additions and 4 deletions

View file

@ -9,8 +9,7 @@
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"interval": 1,
"title-len": 10,
"album-len": 10,
"dynamic-length": 52,
"player-icons": {
"default": "▶",
"mpv": "🎵",

View file

@ -1,9 +1,11 @@
{
inputs,
pkgs,
config,
...
}: {
alqueva.users.artur = {
shell = config.programs.xonsh.package;
tmpfiles = {
".config/qutebrowser/config.py" = ./configs/qutebrowser/config.py;
".config/qutebrowser/gruvbox.py" = ./configs/qutebrowser/gruvbox.py;

View file

@ -27,6 +27,11 @@ in {
default = [];
description = "Groups to add the defined user to.";
};
shell = mkOption {
type = types.package;
default = config.programs.bash.package;
description = "Shell the user wants to use.";
};
};
});
};
@ -38,7 +43,7 @@ in {
isNormalUser = true;
extraGroups = ucfg.groups;
inherit (ucfg) packages;
shell = config.programs.xonsh.package;
shell = ucfg.shell;
initialPassword = "password";
})
cfg;