Add root ssh keys

This commit is contained in:
iFargle 2023-12-01 12:43:38 +09:00
parent d1665017ac
commit e46158b328
4 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,7 @@
./common/modules/nixos.nix # NixOS related items ./common/modules/nixos.nix # NixOS related items
./common/modules/remote-builders.nix # Add remote builders ./common/modules/remote-builders.nix # Add remote builders
./users/root
./users/${username} ./users/${username}
./hosts/${hostname} ./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop}; ] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};
@ -49,8 +50,6 @@
cryptsetup # used to open LUKS devices cryptsetup # used to open LUKS devices
parted # Disk partitioner / Formatter parted # Disk partitioner / Formatter
screen # Terminal screen manager screen # Terminal screen manager
alejandra # Nix code formatter
nixfmt # Nix code formatter
e2fsprogs # disk format utilities, like mkfs.ext4 e2fsprogs # disk format utilities, like mkfs.ext4
bat # Like cat, but with syntax highlighting bat # Like cat, but with syntax highlighting
openssl # Used to generate certs, random strings, etc openssl # Used to generate certs, random strings, etc

View file

@ -9,6 +9,7 @@
./common/modules/nixos.nix # NixOS related items ./common/modules/nixos.nix # NixOS related items
./common/modules/remote-builders.nix # Add remote builders ./common/modules/remote-builders.nix # Add remote builders
./users/root
./users/${username} ./users/${username}
./hosts/${hostname} ./hosts/${hostname}
] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop}; ] ++ lib.optional (builtins.isString desktop) ./common/desktops/${desktop};

View file

@ -15,6 +15,7 @@
./common/modules/nixos.nix # Common NixOS Configurations ./common/modules/nixos.nix # Common NixOS Configurations
./common/modules/remote-builders.nix # Add remote builders ./common/modules/remote-builders.nix # Add remote builders
./users/root
./users/${username} ./users/${username}
./hosts/${hostname} ./hosts/${hostname}
]; ];

View file

@ -0,0 +1,3 @@
{ config, desktop, lib, pkgs, ... }:
users.users.root.openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/keys.txt ];
}