mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-06-05 21:25:22 +02:00
28 lines
765 B
Nix
28 lines
765 B
Nix
{ fp, config, pkgs, values, ... }:
|
|
{
|
|
imports = [
|
|
# Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
(fp /base)
|
|
(fp /misc/metrics-exporters.nix)
|
|
# ./services/dibbler.nix
|
|
];
|
|
|
|
sops.defaultSopsFile = ../../secrets/skrott/skrott.yaml;
|
|
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
|
sops.age.generateKey = true;
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
networking.hostName = "skrott";
|
|
|
|
systemd.network.networks."30-yolo" = values.defaultNetworkConfig // {
|
|
matchConfig.Name = "*";
|
|
address = with values.hosts.skrott; [ (ipv4 + "/25") (ipv6 + "/64") ];
|
|
};
|
|
|
|
system.stateVersion = "24.11";
|
|
}
|