mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Fix passwordFile, make it hashedPasswordFile
This commit is contained in:
parent
2d1ecd3211
commit
72fa9d89dc
13 changed files with 35 additions and 48 deletions
|
@ -11,10 +11,10 @@
|
|||
users.users.root.passwordFile = config.age.secrets."cube.password".path;
|
||||
|
||||
users.users.rgb = normalUser {
|
||||
description = "RGB";
|
||||
extraGroups = [ "wheel" ];
|
||||
description = "RGB";
|
||||
extraGroups = [ "wheel" ];
|
||||
openssh.authorizedKeys.keys = [ keys.rgbcube ];
|
||||
passwordFile = config.age.secrets."cube.password".path;
|
||||
hashedPasswordFile = config.age.secrets."cube.password.hash".path;
|
||||
};
|
||||
})
|
||||
|
||||
|
|
|
@ -7,19 +7,19 @@
|
|||
|
||||
time.timeZone = "Europe/Istanbul";
|
||||
|
||||
users.users.root.passwordFile = config.age.secrets."enka.said.password".path;
|
||||
users.users.root.hashedPasswordFile = config.age.secrets."enka.said.password.hash".path;
|
||||
|
||||
users.users.said = graphicalUser {
|
||||
description = "Said";
|
||||
extraGroups = [ "wheel" ];
|
||||
passwordFile = config.age.secrets."enka.said.password".path;
|
||||
uid = 1000;
|
||||
description = "Said";
|
||||
extraGroups = [ "wheel" ];
|
||||
hashedPasswordFile = config.age.secrets."enka.said.password.hash".path;
|
||||
uid = 1000;
|
||||
};
|
||||
|
||||
users.users.orhan = graphicalUser {
|
||||
description = "Orhan";
|
||||
passwordFile = builtins.trace (config.age.secrets) config.age.secrets."enka.orhan.password".path;
|
||||
uid = 1001;
|
||||
description = "Orhan";
|
||||
hashedPasswordFile = builtins.trace (config.age.secrets) config.age.secrets."enka.orhan.password.hash".path;
|
||||
uid = 1001;
|
||||
};
|
||||
|
||||
networking.firewall = enabled {
|
||||
|
|
5
modules/users.nix
Normal file
5
modules/users.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ulib, ... }: with ulib;
|
||||
|
||||
systemConfiguration {
|
||||
users.mutableUsers = false;
|
||||
}
|
BIN
secrets/acme.age
BIN
secrets/acme.age
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 +rZ0Tw x9IJ2ck/8MA6Fs35/BMihuDmKQCSElWbOYJj0LjICm8
|
||||
05eogDn65uicgob/Y54fM48oPBEi6MG+MVYklCdGYCc
|
||||
--- V2522x6kEJw9dTupA5GoH9n3bFCQwIoNbuRWmkNUb4E
|
||||
¿5²±Â%##”9={[°6ˆOů;‚…æØoá]¥†zÑ4/˜½“
|
BIN
secrets/cube.password.hash.age
Normal file
BIN
secrets/cube.password.hash.age
Normal file
Binary file not shown.
|
@ -1,13 +0,0 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-rsa jPaU3Q
|
||||
GlmABFdE3kDBw9CViYn1me+juMa33cJnG2A+JbFLkf0kxIjOc60fu1V94NgmkX+c
|
||||
GDwVJf3orhjdNPX74we7hjQh2Qr4TlgQJiBm8InqU5B+hM7UHU9rVkTXi0VGf+WP
|
||||
2AQM6ROk+zzGdfT2wGf9Q49DQ/hVLqTsY+CZI4+UvqUFYP8n/GiXAC4RaTAYA+RB
|
||||
krD5pFTsxRIu+l7J3JrbFDna1YpeYZhCXeIt5tvKOhJFUklzvlYhSc8g9kNKmE1/
|
||||
aN1wCy86vaHcxe3MBIBdj0vfqyQk+wx9lInW2GIqmjn84+HG/r4k9hShljdrJHLe
|
||||
h99xblajmoCSuLrw7Bx/zz9Bb9UApP0Jybn+2YKh0dKmFl/twIDZhNOUlxI6r/XM
|
||||
h8puG7Fmh/jaqrWFBflh4f73PcLuCUU93t0D29HRzELL1l99ZZNednSTj8BVnE0o
|
||||
kgOGpKzoC7B+T6SA8+9wg1RnXOCS5EjLhsNuIiOGr5Z/iIxpSG8ZyaE9IR/qHgXx
|
||||
|
||||
--- H1Sj5NTcvGobXVCgNTrFlJ43hM+M9wy02THaguqhvL8
|
||||
4kÅ>Åý fÍ(;lXÊU ªL'ÈŽ|CÌ“üÀ÷xróL\µ”ŸiO
|
BIN
secrets/enka.orhan.password.hash.age
Normal file
BIN
secrets/enka.orhan.password.hash.age
Normal file
Binary file not shown.
|
@ -1,13 +0,0 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-rsa jPaU3Q
|
||||
n0HmR5sh8691NXK0g1f4IlxFsVDVD1/WFqOUHdIDIJCZJQJlnto+dAxK/Lm3116/
|
||||
F+4ptdlLrmOsK45KkKXqXGn2mVEDXUAtj6cfxO0uIF8hX6vdMI+pKkWkmGQrIMlP
|
||||
WExmWAB5aPdtMiKq/ON9OWzCgAGrrOxvt944tIcA/7JvtD/fiOB/n1CLq7xnG0z4
|
||||
wsnL5qxujrVYi5kfejPKH9iMLc0W9/4TBh99xlfCOSvu7ZdJSMeTBe3gYVSCS30n
|
||||
BiLwSXByQ9vhGjWOzw9WYRAR2QWh+Nez9z5O7RUTH4QyCnWNaqza9lixAid6GU9P
|
||||
eqScuqJD7t8/bbVB+AATlEcNKhajwg0+rI17rKAYavP5YBQMW3Wh8J6MeHDRNoll
|
||||
SjjN/JnSPzny2+UtaWxx86uM8r18l1aC1X3/yIHEU39IZNtEsRTXEeahszveT10j
|
||||
OKBd6DwDPHjP38Hz1hmg0VSqmZ88pLJjmx4nW5C/zBrzErl09aeYHDYaxBzLoaIv
|
||||
|
||||
--- E48Sdci1uNpRiCQUtsmHvrXfVp09RP1PZyYGE8fy/MA
|
||||
gÄaì9‡ßŽ+‰?§Ô¬¯ýø)˜Pã–XDZúN\ý^s…5
|
13
secrets/enka.said.password.hash.age
Normal file
13
secrets/enka.said.password.hash.age
Normal file
|
@ -0,0 +1,13 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-rsa jPaU3Q
|
||||
fcLnXbOJUuKFwACpygk4zFbvl77TiC/xhsqYKjqOBbuWUq29rvj1nBVAXMkaKBtY
|
||||
NZmJ21FIvvYhu7Yt8C49ePVdHbQnxix9TDjzAz8D3G3uuKcBJ8SO9t2faA64hPjV
|
||||
uNHWO5KMrtjdmYl195yg2BS//gBMgQVcoOSkE1ydla8Dso4pv27x6ZULVqeTlV+Z
|
||||
WMuK6RUknqJqlCLjaAIcUd7y/ALZJFucJ6yJk4JtUVbyxEYGt52wBEiELD/rXWop
|
||||
LWMgzKnLrL5xK07Z+9X94HUigtOMvpUDQUak6e4P46cZwzic6qZOCWBswnkQSuIe
|
||||
yWkGD0hpYkCDNlUkQXAs2jqICbpGXCNQ3plCeFp84B0hSs1gcg3gSkY8S8s9vUIv
|
||||
yx/BGdqz/Ev6tvqvYpSB8EN3bMEXzhW1wr698GFQVHNdcIAQrhuyPboa5rbsJZn5
|
||||
KueQnyH0ZNCBYs1tJC3u9IjRjS1Zi8i86nWmLvpKa6RXKHqVsbvi2Llvqn7SSE2o
|
||||
|
||||
--- mkKbbwjMlBGtzye+ey4JDdT1zWxoI6nU2l8pNlG44ow
|
||||
)nÒ_ßK¢=M\`ÿ&…ró¹ÐÓvVŸ#ï§)<29>ÚNóš•q°ß¸<C39F>UÔ“»(ܸOÚ‹³¤Z‚f3ÌÏÍxºB9šeE…S£ãݫа¿ê#ò1uä°%ý¢b
|
|
@ -1,10 +1,10 @@
|
|||
with import ./keys.nix;
|
||||
|
||||
{
|
||||
"acme.age".publicKeys = [ cube ];
|
||||
"cube.password.age".publicKeys = [ cube ];
|
||||
"cube.mail.password.hash.age".publicKeys = [ cube ];
|
||||
"cube.id.age".publicKeys = [ rgbcube ];
|
||||
"enka.said.password.age".publicKeys = [ rgbcube ];
|
||||
"enka.orhan.password.age".publicKeys = [ rgbcube ];
|
||||
"acme.age".publicKeys = [ cube ];
|
||||
"cube.password.hash.age".publicKeys = [ cube ];
|
||||
"cube.mail.password.hash.age".publicKeys = [ cube ];
|
||||
"cube.id.age".publicKeys = [ rgbcube ];
|
||||
"enka.said.password.hash.age".publicKeys = [ rgbcube ];
|
||||
"enka.orhan.password.hash.age".publicKeys = [ rgbcube ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue