nixos-config/systems/mc3/hardware-configuration.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2021-10-16 12:30:41 +02:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
2021-11-06 00:07:40 +01:00
let
mc1 = "192.168.0.167";
common_mc1_route = {
via = mc1;
prefixLength = 24;
};
in
2021-10-16 12:30:41 +02:00
{
imports = [ ];
boot.initrd.availableKernelModules = [ "ata_piix" "vmw_pvscsi" "floppy" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/92494416-3ec5-4bcd-adc9-11375646fe80";
fsType = "btrfs";
options = [ "compress-force=zstd:7" ];
};
swapDevices = [ ];
2021-11-04 13:04:03 +01:00
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
2021-10-16 12:30:41 +02:00
2021-11-06 00:07:40 +01:00
networking = {
hostName = "mc3";
domain = "mc-fucker.cool";
useDHCP = false;
nameservers = [ mc1 ];
defaultGateway = "192.168.0.1";
interfaces.ens192.ipv4 = {
addresses = [ {
address = "192.168.0.165";
prefixLength = 24;
} ];
routes = [
(common_mc1_route // { address = "192.168.1.0"; })
(common_mc1_route // { address = "192.168.2.0"; })
(common_mc1_route // { address = "192.168.3.0"; })
];
};
};
2021-10-16 12:30:41 +02:00
}