Pls work lmao
This commit is contained in:
parent
76119aef0f
commit
1410b20e7d
5 changed files with 22 additions and 9 deletions
|
@ -1,9 +1,7 @@
|
|||
# Holds common settings for *all* systems, including both servers and
|
||||
# clients.
|
||||
|
||||
{ pkgs, oxalica, agenix, ... }: {
|
||||
|
||||
imports = [ agenix.nixosModule ];
|
||||
{ pkgs, oxalica, ... }: {
|
||||
|
||||
nix = {
|
||||
trustedUsers = [ "riley" ];
|
||||
|
@ -27,8 +25,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
age.secrets."website-secret".file = ./secrets/website-secret.age;
|
||||
|
||||
boot.cleanTmpDir = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, agenix, ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
|
||||
agenix.nixosModule
|
||||
|
||||
../../modules
|
||||
|
||||
# Reverse proxy
|
||||
|
@ -28,6 +30,8 @@
|
|||
vim
|
||||
];
|
||||
|
||||
age.secrets."website-secret".file = ../../secrets/website-secret.age;
|
||||
|
||||
system.stateVersion = "21.11";
|
||||
|
||||
riley = {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, agenix, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
agenix.nixosModule
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
];
|
||||
|
@ -43,6 +44,8 @@
|
|||
cockatrice
|
||||
];
|
||||
|
||||
age.secrets."website-secret".file = ../../secrets/website-secret.age;
|
||||
|
||||
devices = {
|
||||
|
||||
# Audio devices
|
||||
|
|
|
@ -15,4 +15,10 @@
|
|||
packages = with pkgs; [ openssh ];
|
||||
|
||||
};
|
||||
|
||||
users.users."root" = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGk/nBXhr3xWtbXBBkCuwqE6OixpRXCfscfxibgcCsTR me@riley.lgbt"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
let commonKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIXreYQgV6lS0rJ1NlAbgq3Iv5FJ8o1MOr08NhLTGFG";
|
||||
let sif = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIXreYQgV6lS0rJ1NlAbgq3Iv5FJ8o1MOr08NhLTGFG";
|
||||
thor = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILniE+LdfdV9V9+Zj5gJXqKEv1CzQaEySy1u5OdbKa8d root@thor";
|
||||
in {
|
||||
"website-secret.age".publicKeys = [ commonKey ];
|
||||
"website-secret.age".publicKeys = [
|
||||
thor
|
||||
sif
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue