re-organize configuration

This commit is contained in:
Antoine Martin 2021-02-14 13:42:43 +01:00
parent e2456d8019
commit 93f392f37e
12 changed files with 54 additions and 24 deletions

View file

@ -1,11 +1,14 @@
{ config, lib, pkgs, ... }:
let
secrets = config.my.secrets;
in
{
users.mutableUsers = false;
users.users.root = {
hashedPassword = lib.fileContents ../secrets/shadow-hashed-password-root;
hashedPassword = secrets.shadow-hashed-password-root;
};
users.users.alarsyo = {
hashedPassword = lib.fileContents ../secrets/shadow-hashed-password-alarsyo;
hashedPassword = secrets.shadow-hashed-password-alarsyo;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.fish;