mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-18 23:56:55 +02:00
meta: Begin making shell module customizable
This commit is contained in:
parent
a03963d1f7
commit
dd38bf1c4c
@ -1,9 +1,16 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs) fish htop-vim;
|
inherit (pkgs) fish htop-vim;
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
|
||||||
|
cfg = config.modules.shell;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.modules.shell = {
|
||||||
|
};
|
||||||
|
|
||||||
|
config = with cfg; {
|
||||||
users.defaultUserShell = fish;
|
users.defaultUserShell = fish;
|
||||||
environment.shells = [ fish ];
|
environment.shells = [ fish ];
|
||||||
|
|
||||||
@ -275,4 +282,5 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user