Switch to lix and update the arr stack
This commit is contained in:
parent
e860e4a9bd
commit
34f11ee2fb
6 changed files with 249 additions and 148 deletions
|
|
@ -37,7 +37,5 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue