mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
feat: move to agenix secrets
This commit is contained in:
parent
e392ca9001
commit
8ee88f922c
11 changed files with 214 additions and 253 deletions
|
@ -1,30 +1,26 @@
|
|||
{ config, pkgs, ... }: {
|
||||
|
||||
sops.secrets.user-julien-password.neededForUsers = true;
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
users.users.julien = {
|
||||
isNormalUser = true;
|
||||
home = "/home/julien";
|
||||
extraGroups = [ "wheel" config.users.groups.keys.name "networkmanager" "davfs2" "adbusers" "audio" "pipewire" "dialout" "video" ];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
config.users.groups.keys.name
|
||||
"networkmanager"
|
||||
"davfs2"
|
||||
"adbusers"
|
||||
"audio"
|
||||
"pipewire"
|
||||
"dialout"
|
||||
"video"
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
hashedPasswordFile = config.sops.secrets.user-julien-password.path;
|
||||
hashedPasswordFile = config.age.secrets.julien-password.path;
|
||||
};
|
||||
|
||||
nix.settings.allowed-users = [ "julien" ];
|
||||
nix.settings.trusted-users = [ "julien" ];
|
||||
|
||||
sops.secrets.ens-mail-passwd = {
|
||||
owner = "julien";
|
||||
path = "/home/julien/.config/ens-mail-passwd";
|
||||
};
|
||||
|
||||
sops.secrets.git-gpg-private-key = {
|
||||
owner = "julien";
|
||||
mode = "0440";
|
||||
group = config.users.groups.keys.name;
|
||||
sopsFile = ../secrets/git-gpg-private-key;
|
||||
format = "binary";
|
||||
};
|
||||
|
||||
|
||||
age.secrets.julien-password.file = ../secrets/user-julien-password.age;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue