nixos-config/hosts/vm-oddjob/configuration.nix

32 lines
608 B
Nix
Raw Normal View History

2025-06-07 21:15:31 +02:00
{
2025-06-07 23:36:21 +02:00
inputs,
2025-06-07 21:15:31 +02:00
lib,
pkgs,
config,
...
}:
{
# State version
system.stateVersion = "24.11";
# Machine hostname
2025-06-07 23:38:38 +02:00
networking.hostName = "vm-oddjob";
2025-06-07 21:15:31 +02:00
# Enabled modules
modules = {
profiles.vm.enable = true;
};
2025-06-07 23:36:21 +02:00
# Setup NAS backups
environment.systemPackages = with pkgs; [ cifs-utils ];
sops.secrets."smb-credentials" = {
sopsFile = "${inputs.secrets}/secrets/vm-oddjob.enc.yaml";
};
fileSystems."/mnt/nas" = {
device = "//${inputs.secrets.lab.nas.host}/Backup";
fsType = "cifs";
options = [ "credentials=${config.sops.secrets."smb-credentials".path}" ];
};
2025-06-07 21:15:31 +02:00
}