chore: initialized project
This commit is contained in:
commit
d79fe97b7e
24 changed files with 786 additions and 0 deletions
11
roles/device/default.nix
Normal file
11
roles/device/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
./firewall.nix
|
||||
./secrets.nix
|
||||
./sudo.nix
|
||||
./users.nix
|
||||
]
|
||||
++ import ../../modules/top-level.nix;
|
||||
}
|
||||
3
roles/device/firewall.nix
Normal file
3
roles/device/firewall.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
networking.firewall.enable = true;
|
||||
}
|
||||
14
roles/device/secrets.nix
Normal file
14
roles/device/secrets.nix
Normal 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
6
roles/device/sudo.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
wheelNeedsPassword = false;
|
||||
};
|
||||
}
|
||||
5
roles/device/users.nix
Normal file
5
roles/device/users.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
../../users/bddvlpr.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue