mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 04:40:05 +00:00
✨ Add tons of missing system, desktop and home modules
This commit is contained in:
parent
01367c4222
commit
fa3bbb2f6f
15 changed files with 453 additions and 7 deletions
25
modules/nixos/system/shell/default.nix
Normal file
25
modules/nixos/system/shell/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
self,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf types;
|
||||
inherit (self) namespace;
|
||||
inherit (self.lib) mkOpt;
|
||||
|
||||
cfg = config.${namespace}.system.shell;
|
||||
in {
|
||||
options.${namespace}.system.shell = {
|
||||
enable = mkEnableOption "custom user shells.";
|
||||
installed = mkOpt types.listOf types.package [pkgs.fish] "List of shell packages to install";
|
||||
default = mkOpt types.str "fish" "Set a custom shell as the default for all users.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.shells = cfg.installed;
|
||||
users.defaultUserShell = pkgs.${cfg.shell.type};
|
||||
programs.${cfg.shell.type}.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue