mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
23 lines
568 B
Nix
23 lines
568 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
|
|
sops.secrets.user-julien-password.neededForUsers = true;
|
|
|
|
|
|
users.users.julien = {
|
|
isNormalUser = true;
|
|
home = "/home/julien";
|
|
extraGroups = [ "wheel" config.users.groups.keys.name];
|
|
shell = pkgs.fish;
|
|
passwordFile = config.sops.secrets.user-julien-password.path;
|
|
openssh.authorizedKeys.keyFiles = [
|
|
(pkgs.fetchurl {
|
|
url = "https://github.com/JulienMalka.keys";
|
|
sha256 = "sha256:2NLoT1/N6Y1uZQ+KLGeRLBPNkc4z3jrYrN9A4bCJWkU=";
|
|
})
|
|
];
|
|
};
|
|
|
|
|
|
nix.allowedUsers = [ "julien" ];
|
|
}
|