Pls work lmao

This commit is contained in:
Riley Apeldoorn 2022-05-27 15:59:00 +02:00
parent 76119aef0f
commit 1410b20e7d
5 changed files with 22 additions and 9 deletions

View file

@ -1,9 +1,7 @@
# Holds common settings for *all* systems, including both servers and # Holds common settings for *all* systems, including both servers and
# clients. # clients.
{ pkgs, oxalica, agenix, ... }: { { pkgs, oxalica, ... }: {
imports = [ agenix.nixosModule ];
nix = { nix = {
trustedUsers = [ "riley" ]; trustedUsers = [ "riley" ];
@ -27,8 +25,6 @@
]; ];
}; };
age.secrets."website-secret".file = ./secrets/website-secret.age;
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
environment.systemPackages = [ environment.systemPackages = [

View file

@ -1,9 +1,11 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, agenix, ... }:
{ {
imports = [ imports = [
agenix.nixosModule
../../modules ../../modules
# Reverse proxy # Reverse proxy
@ -28,6 +30,8 @@
vim vim
]; ];
age.secrets."website-secret".file = ../../secrets/website-secret.age;
system.stateVersion = "21.11"; system.stateVersion = "21.11";
riley = { riley = {

View file

@ -1,7 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, agenix, ... }:
{ {
imports = [ imports = [
agenix.nixosModule
./hardware-configuration.nix ./hardware-configuration.nix
../../modules ../../modules
]; ];
@ -43,6 +44,8 @@
cockatrice cockatrice
]; ];
age.secrets."website-secret".file = ../../secrets/website-secret.age;
devices = { devices = {
# Audio devices # Audio devices

View file

@ -15,4 +15,10 @@
packages = with pkgs; [ openssh ]; packages = with pkgs; [ openssh ];
}; };
users.users."root" = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGk/nBXhr3xWtbXBBkCuwqE6OixpRXCfscfxibgcCsTR me@riley.lgbt"
];
};
} }

View file

@ -1,4 +1,8 @@
let commonKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIXreYQgV6lS0rJ1NlAbgq3Iv5FJ8o1MOr08NhLTGFG"; let sif = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIXreYQgV6lS0rJ1NlAbgq3Iv5FJ8o1MOr08NhLTGFG";
thor = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILniE+LdfdV9V9+Zj5gJXqKEv1CzQaEySy1u5OdbKa8d root@thor";
in { in {
"website-secret.age".publicKeys = [ commonKey ]; "website-secret.age".publicKeys = [
thor
sif
];
} }