wrap agenix, server changes
This commit is contained in:
parent
c548d24239
commit
b4cc4eab4d
6 changed files with 14 additions and 6 deletions
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
dirUtils,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = [inputs.agenix.packages.x86_64-linux.default];
|
||||
age = {
|
||||
identityPaths = [
|
||||
"/home/quadradical/.ssh/id_ed25519"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
fd
|
||||
glib
|
||||
tldr
|
||||
killall
|
||||
ripgrep
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
{
|
||||
users.users.quadradical.openssh.authorizedKeys.keys = import ../../secrets/keys.nix;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
knownHosts.quadraticpc.publicKeyFile = builtins.fetchurl {
|
||||
url = "https://github.com/Henry-Hiles.keys";
|
||||
sha256 = "1k73c228rgzq7ymf5vaj6wfqzkqm6yzq5lq0syb7mzbrvngvr2jc";
|
||||
};
|
||||
settings = {
|
||||
PasswordAuthentication = true; # TODO: False
|
||||
AllowUsers = ["quadradical"];
|
||||
|
|
5
secrets/keys.nix
Normal file
5
secrets/keys.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
with builtins;
|
||||
filter isString (split "\n" (readFile (fetchurl {
|
||||
url = "https://github.com/Henry-Hiles.keys";
|
||||
sha256 = "1k73c228rgzq7ymf5vaj6wfqzkqm6yzq5lq0syb7mzbrvngvr2jc";
|
||||
})))
|
6
wrappers/common/agenix.nix
Normal file
6
wrappers/common/agenix.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{inputs, ...}: {
|
||||
wrappers.agenix = {
|
||||
basePackage = inputs.agenix.packages.x86_64-linux.default;
|
||||
env.RULES.value = "keys.nix";
|
||||
};
|
||||
}
|
|
@ -8,6 +8,7 @@
|
|||
environment.systemPackages = with dirUtils; [
|
||||
(inputs.wrapper-manager.lib.build {
|
||||
inherit pkgs;
|
||||
specialArgs = {inherit inputs;};
|
||||
modules = dirFiles ".nix" ./common ++ opt isDesktop (dirFiles ".nix" ./common-desktop);
|
||||
})
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue