mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 02:09:04 +02:00
First step with sops
This commit is contained in:
parent
2d63b9e96e
commit
516034c19f
5 changed files with 66 additions and 4 deletions
|
@ -1,10 +1,15 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
|
||||
users.mutableUsers = false;
|
||||
sops.secrets.user-julien-password.neededForUsers = true;
|
||||
|
||||
users.users.julien = {
|
||||
isNormalUser = true;
|
||||
home = "/home/julien";
|
||||
extraGroups = [ "wheel" ];
|
||||
extraGroups = [ "wheel" "keys"];
|
||||
shell = pkgs.fish;
|
||||
passwordFile = config.sops.secrets.user-julien-password.path;
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
(pkgs.fetchurl {
|
||||
url = "https://github.com/JulienMalka.keys";
|
||||
|
@ -13,5 +18,5 @@
|
|||
];
|
||||
};
|
||||
|
||||
nix.allowedUsers = [ "julien" ];
|
||||
nix.allowedUsers = [ "lol" "julien" ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue