This commit is contained in:
James Eversole 2023-06-26 16:30:36 -05:00
parent c8366db03f
commit 6081557b6b
9 changed files with 23 additions and 47 deletions

View File

@ -25,11 +25,11 @@
modules = [ modules = [
({ modulesPath, ... }: { ({ modulesPath, ... }: {
imports = [ imports = [
agenix.nixosModules.default agenix.nixosModules.default
./system/containers.nix ./system/containers.nix
./system/hardware-configuration.nix ./system/hardware-configuration.nix
./system/nix-configuration.nix ./system/nix-configuration.nix
./system/security.nix ./system/security.nix
./system/services.nix ./system/services.nix

View File

@ -1,13 +1,10 @@
let let
james = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID7R6FstqVDjVuyKGEUmWolYJ/I/DDxYOQV/zKPkiAth james@eversole.co"; james =
eve-psr-nix0 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMyaPYK0HcKAjrD1g+FPqPEU9FJ0I6+iKYmQlWKE0zHp root@matri.cx"; "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID7R6FstqVDjVuyKGEUmWolYJ/I/DDxYOQV/zKPkiAth james@eversole.co";
eve-psr-nix0 =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMyaPYK0HcKAjrD1g+FPqPEU9FJ0I6+iKYmQlWKE0zHp root@matri.cx";
all = [ james eve-psr-nix0 ]; all = [ james eve-psr-nix0 ];
in in {
{ "secrets/keys.age" = { publicKeys = all; };
"secrets/keys.age" = { "secrets/sezycei.age" = { publicKeys = all; };
publicKeys = all;
};
"secrets/sezycei.age" = {
publicKeys = all;
};
} }

View File

@ -88,7 +88,8 @@
"/etc/localtime:/etc/localtime:ro" "/etc/localtime:/etc/localtime:ro"
"/home/torrent/data:/data" "/home/torrent/data:/data"
]; ];
environmentFiles = [ /home/sezycei/srv/containerdata/transmission/.env ]; environmentFiles =
[ /home/sezycei/srv/containerdata/transmission/.env ];
extraOptions = [ "--cap-add=NET_ADMIN" "--privileged" ]; extraOptions = [ "--cap-add=NET_ADMIN" "--privileged" ];
}; };
}; };

View File

@ -1,5 +1,4 @@
{ ... }: { ... }: {
{
nix = { nix = {
buildMachines = [ ]; buildMachines = [ ];
distributedBuilds = false; distributedBuilds = false;

View File

@ -1,4 +1 @@
{ ... }: { ... }: { security.sudo.wheelNeedsPassword = false; }
{
security.sudo.wheelNeedsPassword = false;
}

View File

@ -1,9 +1,6 @@
{ ... }: { ... }: {
{
services = { services = {
openssh = { openssh = { enable = true; };
enable = true;
};
hydra = { hydra = {
enable = true; enable = true;

View File

@ -1,5 +1,4 @@
{ pkgs, ... }: { pkgs, ... }: {
{
boot = { boot = {
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true; loader.efi.canTouchEfiVariables = true;

View File

@ -1,8 +1 @@
{ ... }: { ... }: { virtualisation = { oci-containers = { backend = "podman"; }; }; }
{
virtualisation = {
oci-containers = {
backend = "podman";
};
};
}

View File

@ -1,18 +1,11 @@
{ config, pkgs, ... }: { config, pkgs, ... }: {
{
users.users = { users.users = {
sezycei = { sezycei = {
isNormalUser = true; isNormalUser = true;
passwordFile = config.age.secrets.sezycei.path; passwordFile = config.age.secrets.sezycei.path;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
packages = with pkgs; [ packages = with pkgs; [ byobu tmux stack ];
byobu
tmux
stack
];
}; };
torrent = { torrent = { isNormalUser = true; };
isNormalUser = true; };
};
};
} }