Move julia :3

This commit is contained in:
Agatha Lovelace 2023-03-26 18:15:14 +02:00
parent 1cc3496ea0
commit f3bc0c54ff
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
3 changed files with 17 additions and 15 deletions

View File

@ -9,21 +9,9 @@
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGGYqCcDg9hTINHyf8S56/P83+ZzqwV2t9gUsVYyajjR" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGGYqCcDg9hTINHyf8S56/P83+ZzqwV2t9gUsVYyajjR"
]; ];
};
julia = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIa/G3M13aVJpOIX8U/5duiGiNNGmM88/0k0+o0EUGRI cardno:20 876 680"
];
}; };
}; };
users.users.root.openssh.authorizedKeys.keys = users.users.root.openssh.authorizedKeys.keys =
config.users.users.agatha.openssh.authorizedKeys.keys; config.users.users.agatha.openssh.authorizedKeys.keys;
} }

13
common/users/julia.nix Normal file
View File

@ -0,0 +1,13 @@
{ config, pkgs, ... }: {
users.users = {
julia = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIa/G3M13aVJpOIX8U/5duiGiNNGmM88/0k0+o0EUGRI cardno:20 876 680"
];
};
};
}

View File

@ -1,6 +1,7 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../common/users/julia.nix
../../common/fragments/bin.nix ../../common/fragments/bin.nix
../../common/fragments/fail2ban.nix ../../common/fragments/fail2ban.nix
../../common/fragments/grafana.nix ../../common/fragments/grafana.nix
@ -15,9 +16,9 @@
]; ];
nixpkgs.overlays = [ nixpkgs.overlays = [
(self: super: { (final: prev: {
bin = self.callPackage ../../common/pkgs/bin.nix { }; bin = final.callPackage ../../common/pkgs/bin.nix { };
vampysite = self.callPackage ../../common/pkgs/vampysite.nix { }; vampysite = final.callPackage ../../common/pkgs/vampysite.nix { };
}) })
]; ];