diff options
author | lassulus <lassulus@lassul.us> | 2022-12-02 08:29:40 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-12-02 08:29:40 +0100 |
commit | 2ea3b14cb5caa06f2d2972177a93cddb6d9d66f6 (patch) | |
tree | 84b86d77b88868fc70082a64f35b5077247157dd /krebs/3modules/users.nix | |
parent | 81b5682c5ff1e36613f844a874e09b897ee13d3e (diff) | |
parent | f8fb430fc1bbc3ee6356971bbd1bdeba1b9a0d69 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/3modules/users.nix')
-rw-r--r-- | krebs/3modules/users.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/krebs/3modules/users.nix b/krebs/3modules/users.nix new file mode 100644 index 000000000..c1ad4b44b --- /dev/null +++ b/krebs/3modules/users.nix @@ -0,0 +1,20 @@ +{ config, ... }: let + lib = import ../../lib; +in { + options.krebs.users = lib.mkOption { + type = with lib.types; attrsOf user; + }; + config = lib.mkIf config.krebs.enable { + krebs.users = { + krebs = { + home = "/krebs"; + mail = "spam@krebsco.de"; + }; + root = { + home = "/root"; + pubkey = config.krebs.build.host.ssh.pubkey; + uid = 0; + }; + }; + }; +} |