chore: initialized project

This commit is contained in:
Luna Simons 2026-02-27 17:03:35 +01:00
commit d79fe97b7e
No known key found for this signature in database
GPG key ID: FAB9C1BCA0FED262
24 changed files with 786 additions and 0 deletions

11
roles/device/default.nix Normal file
View file

@ -0,0 +1,11 @@
{ inputs, ... }:
{
imports = [
inputs.disko.nixosModules.disko
./firewall.nix
./secrets.nix
./sudo.nix
./users.nix
]
++ import ../../modules/top-level.nix;
}

View file

@ -0,0 +1,3 @@
{
networking.firewall.enable = true;
}

14
roles/device/secrets.nix Normal file
View file

@ -0,0 +1,14 @@
{
inputs,
config,
lib,
...
}:
let
hostSecretsFile = ../../systems + "${config.networking.hostName}/secrets.yaml";
in
{
imports = [ inputs.sops-nix.nixosModules.sops ];
sops.defaultSopsFile = lib.mkIf (builtins.pathExists hostSecretsFile) hostSecretsFile;
}

6
roles/device/sudo.nix Normal file
View file

@ -0,0 +1,6 @@
{
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
}

5
roles/device/users.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
../../users/bddvlpr.nix
];
}