forked from kalipso/infrastructure
[moderatio] mv malobeo user to modules/malobeo_user.nix
This commit is contained in:
@@ -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
|
||||
|
||||
19
machines/modules/malobeo_user.nix
Normal file
19
machines/modules/malobeo_user.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user