Switch to lix and update the arr stack

This commit is contained in:
pazpi 2024-08-27 22:00:18 +02:00
parent e860e4a9bd
commit 34f11ee2fb
No known key found for this signature in database
GPG key ID: 0942571C4B9966BE
6 changed files with 249 additions and 148 deletions

View file

@ -37,7 +37,5 @@ in
};
};
nixpkgs.config.allowUnfree = true;
};
}

View file

@ -1,11 +1,27 @@
{
lib,
config,
pkgs,
...
{ lib
, config
, pkgs
, ...
}:
let
cfg = config.my.utils.serverNodeUsers;
gitlabUsername = "pazpi";
sshKeys =
let
localKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhiGLc/whCY3lCmDiRlYnMJOLiO/gvcRj/sKVEFVAhQ pazpi@deadbeef"
# Add more local keys as needed
];
gitlabKeys = pkgs.lib.splitString "\n" (
builtins.readFile (
pkgs.fetchurl {
url = "https://gitlab.com/${gitlabUsername}.keys";
sha256 = "tHC4DBRO8mXBLFBqGiZlgyY5Pzpl4AMeURCni6H7IjI=";
}
)
);
in
localKeys ++ gitlabKeys;
in
{
options.my.utils.serverNodeUsers = {
@ -24,6 +40,7 @@ in
users.root = {
hashedPassword = "!";
openssh.authorizedKeys.keys = sshKeys;
};
users.pazpi = {
@ -31,9 +48,7 @@ in
hashedPassword = "$y$j9T$oWLCV1hnGPyOGabMfAS3p1$/iwouRZGwQXcv6IHnLuT3I9.pmeXNpcHxq.b8xfitr1";
shell = pkgs.bash;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhiGLc/whCY3lCmDiRlYnMJOLiO/gvcRj/sKVEFVAhQ pazpi@deadbeef"
];
openssh.authorizedKeys.keys = sshKeys;
};
};