mio-ops/hosts/dionach/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

2020-05-05 15:21:17 +00:00
# NixOps configuration for dionach
{
2022-03-07 14:26:15 +00:00
config,
pkgs,
...
}: {
2020-05-05 15:21:17 +00:00
imports = [
2024-08-23 08:00:07 +00:00
../../hardware/purism_librem_15.nix # Include results of the hardware scan.
../../profiles/desktop_common.nix
../../profiles/steam.nix
2020-05-05 15:21:17 +00:00
];
# Use the GRUB 2 boot loader.
boot = {
loader.grub = {
enable = true;
device = "/dev/nvme0n1"; # or "nodev" for efi only
2024-02-16 03:26:46 +00:00
useOSProber = true;
2023-07-20 00:09:36 +00:00
};
kernel.sysctl."net.ipv4.ip_forward" = "1";
extraModprobeConfig = "options kvm_intel nested=1";
2020-05-05 15:21:17 +00:00
};
networking = {
2021-11-16 04:57:23 +00:00
hostName = "dionach"; # Define your hostname.
2024-02-16 03:26:46 +00:00
firewall = {
enable = true;
checkReversePath = false; # Needed for libvirtd
allowedTCPPorts = [15000];
};
2020-05-05 15:21:17 +00:00
};
2022-02-20 23:18:29 +00:00
systemd.network.networks.enp0s20f0u4u4i5.ipv6SendRAConfig = {
EmitDNS = true;
Managed = true;
OtherInformation = true;
};
2020-05-05 15:21:17 +00:00
services.kbfs.enable = true;
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
2024-02-16 03:26:46 +00:00
system.stateVersion = "23.11"; # Did you read the comment?
2020-05-05 15:21:17 +00:00
}