mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Lot of changes, playing with ssh keys
This commit is contained in:
parent
920ac9efc4
commit
6096bc5515
13 changed files with 168 additions and 17 deletions
|
@ -1,23 +1,21 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
|
||||
sops.secrets.user-julien-password.neededForUsers = true;
|
||||
|
||||
|
||||
users.users.julien = {
|
||||
isNormalUser = true;
|
||||
home = "/home/julien";
|
||||
extraGroups = [ "wheel" "docker" config.users.groups.keys.name];
|
||||
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-jx0/AAAeq5d6h1ytdUUnF/bMcn4h0UIKQCwzi3S5+YQ=";
|
||||
sha256 = "sha256-nBgn7jOqi/nPHhTy3x/oirL+A4X2gbmwy1NXLZhV99M=";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
nix.allowedUsers = [ "julien" ];
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue