feat: added support for custom shells in alqueva.users
This commit is contained in:
parent
9599d27cdf
commit
3af3b5dbc4
4 changed files with 9 additions and 4 deletions
|
@ -9,8 +9,7 @@
|
||||||
"format": "{player_icon} {dynamic}",
|
"format": "{player_icon} {dynamic}",
|
||||||
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
"title-len": 10,
|
"dynamic-length": 52,
|
||||||
"album-len": 10,
|
|
||||||
"player-icons": {
|
"player-icons": {
|
||||||
"default": "▶",
|
"default": "▶",
|
||||||
"mpv": "🎵",
|
"mpv": "🎵",
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
alqueva.users.artur = {
|
alqueva.users.artur = {
|
||||||
|
shell = config.programs.xonsh.package;
|
||||||
tmpfiles = {
|
tmpfiles = {
|
||||||
".config/qutebrowser/config.py" = ./configs/qutebrowser/config.py;
|
".config/qutebrowser/config.py" = ./configs/qutebrowser/config.py;
|
||||||
".config/qutebrowser/gruvbox.py" = ./configs/qutebrowser/gruvbox.py;
|
".config/qutebrowser/gruvbox.py" = ./configs/qutebrowser/gruvbox.py;
|
||||||
|
|
|
@ -27,6 +27,11 @@ in {
|
||||||
default = [];
|
default = [];
|
||||||
description = "Groups to add the defined user to.";
|
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;
|
isNormalUser = true;
|
||||||
extraGroups = ucfg.groups;
|
extraGroups = ucfg.groups;
|
||||||
inherit (ucfg) packages;
|
inherit (ucfg) packages;
|
||||||
shell = config.programs.xonsh.package;
|
shell = ucfg.shell;
|
||||||
initialPassword = "password";
|
initialPassword = "password";
|
||||||
})
|
})
|
||||||
cfg;
|
cfg;
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
inputs.self.nixosModules.default
|
inputs.self.nixosModules.default
|
||||||
({config, ...}: {
|
({config, ...}: {
|
||||||
config = {
|
config = {
|
||||||
alqueva.xonsh.enable = true;
|
|
||||||
nix = {
|
nix = {
|
||||||
settings.extra-experimental-features = [
|
settings.extra-experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue