refactor(modules/nixos): move stuff around
This makes the module a bit clearer and easier to extend.
This commit is contained in:
parent
673f989e99
commit
917d131cde
9 changed files with 374 additions and 359 deletions
18
modules/nixos/dev.nix
Normal file
18
modules/nixos/dev.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.jconfig.dev;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (config.jconfig.enable && cfg.enable) {
|
||||
# Enable dev documentation
|
||||
documentation.dev = { inherit (cfg) enable; };
|
||||
|
||||
users.extraUsers = lib.mkIf cfg.jupyter.enable { jupyter.group = "jupyter"; };
|
||||
|
||||
services.jupyter = {
|
||||
inherit (cfg.jupyter) enable;
|
||||
group = "jupyter";
|
||||
user = "jupyter";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue