134 lines
3.5 KiB
Nix
134 lines
3.5 KiB
Nix
# 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, ... }:
|
||
|
||
{
|
||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||
|
||
boot.initrd.availableKernelModules = [ "xhci_pci" "usb_storage" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" = {
|
||
device = "sysion/root";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/nix" = {
|
||
device = "sysion/root/nix";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "sysion/home";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/06AD-825C";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/var/lib/prometheus2" = {
|
||
device = "vault/state_directories/prometheus";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/gitea" = {
|
||
device = "vault/state_directories/gitea";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/matrix-as-facebook" = {
|
||
device = "vault/state_directories/matrix-as-facebook";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/signald" = {
|
||
device = "vault/state_directories/signald";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/matrix-as-signal" = {
|
||
device = "vault/state_directories/matrix-as-signal";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault" = {
|
||
device = "vault";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/matrix-as-telegram" = {
|
||
device = "vault/state_directories/matrix-as-telegram";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault/backups" = {
|
||
device = "vault/backups";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault/mosquitto" = {
|
||
device = "vault/mosquitto";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault/radicale" = {
|
||
device = "vault/radicale";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault/git" = {
|
||
device = "vault/git";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault/syncthing" = {
|
||
device = "vault/syncthing";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault/backups/zion" = {
|
||
device = "vault/backups/zion";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/vault/backups/monolith" = {
|
||
device = "vault/backups/monolith";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/wallabag" = {
|
||
device = "vault/state_directories/wallabag";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/containers/storage/overlay" = {
|
||
device = "/var/lib/containers/storage/overlay";
|
||
fsType = "none";
|
||
options = [ "bind" ];
|
||
};
|
||
|
||
swapDevices =
|
||
[{ device = "/dev/disk/by-uuid/835f9dd4-cc27-4443-b5e1-381c2f4b2afc"; }];
|
||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||
# still possible to use this option, but it's recommended to use it in conjunction
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.cni-podman0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.end0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.veth25ee5d84.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.veth6e46f8d7.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.veth8506af14.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wg0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||
}
|