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,
|
dirUtils,
|
||||||
inputs,
|
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
environment.systemPackages = [inputs.agenix.packages.x86_64-linux.default];
|
|
||||||
age = {
|
age = {
|
||||||
identityPaths = [
|
identityPaths = [
|
||||||
"/home/quadradical/.ssh/id_ed25519"
|
"/home/quadradical/.ssh/id_ed25519"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
fd
|
fd
|
||||||
|
glib
|
||||||
tldr
|
tldr
|
||||||
killall
|
killall
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
{
|
{
|
||||||
|
users.users.quadradical.openssh.authorizedKeys.keys = import ../../secrets/keys.nix;
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
knownHosts.quadraticpc.publicKeyFile = builtins.fetchurl {
|
|
||||||
url = "https://github.com/Henry-Hiles.keys";
|
|
||||||
sha256 = "1k73c228rgzq7ymf5vaj6wfqzkqm6yzq5lq0syb7mzbrvngvr2jc";
|
|
||||||
};
|
|
||||||
settings = {
|
settings = {
|
||||||
PasswordAuthentication = true; # TODO: False
|
PasswordAuthentication = true; # TODO: False
|
||||||
AllowUsers = ["quadradical"];
|
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; [
|
environment.systemPackages = with dirUtils; [
|
||||||
(inputs.wrapper-manager.lib.build {
|
(inputs.wrapper-manager.lib.build {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
specialArgs = {inherit inputs;};
|
||||||
modules = dirFiles ".nix" ./common ++ opt isDesktop (dirFiles ".nix" ./common-desktop);
|
modules = dirFiles ".nix" ./common ++ opt isDesktop (dirFiles ".nix" ./common-desktop);
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue