[moderatio] mv malobeo user to modules/malobeo_user.nix

This commit is contained in:
2022-10-04 19:18:23 +02:00
parent 258413dfb8
commit d7d2cc687b
2 changed files with 20 additions and 8 deletions

View File

@@ -11,6 +11,7 @@
./zfs.nix
../modules/xserver.nix
../modules/malobeo_user.nix
];
# Define on which hard drive you want to install Grub.
@@ -49,14 +50,6 @@
#Define a user account. Don't forget to set a password with passwd.
users.users.malobeo = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
firefox
thunderbird
];
};
# List packages installed in system profile. To search, run:
# $ nix search wget

View File

@@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
let
sshKeys = import ../ssh_keys.nix;
in
{
users.users.malobeo = {
isNormalUser = true;
extraGroups = [ "wheel" ];
packages = with pkgs; [
firefox
thunderbird
];
openssh.authorizedKeys.keys = sshKeys.admins;
initialPassword = "test";
};
}