113 lines
3.6 KiB
Nix
113 lines
3.6 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")
|
||
];
|
||
|
||
# Use the systemd-boot EFI boot loader.
|
||
boot = {
|
||
loader = {
|
||
systemd-boot.enable = true;
|
||
efi.canTouchEfiVariables = true;
|
||
};
|
||
initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "uas" "usbcore" ];
|
||
initrd.kernelModules = [ ];
|
||
kernelModules = [ "kvm-amd" "iscsi_tcp" ];
|
||
extraModulePackages = [ ];
|
||
};
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-label/SYSTEM";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@nixos" "noatime" ];
|
||
};
|
||
|
||
# fileSystems."/ceph/30_media" = {
|
||
# device = "none";
|
||
# fsType = "fuse.ceph";
|
||
# options = ["ceph.name=client.admin" "ceph.client_mds_namespace=media" "_netdev" "defaults"];
|
||
# };
|
||
# fileSystems."/ceph/10_roms" = {
|
||
# device = "none";
|
||
# fsType = "fuse.ceph";
|
||
# options = ["ceph.name=client.admin" "ceph.client_mds_namespace=roms" "_netdev" "defaults"];
|
||
# };
|
||
fileSystems."/nix" = {
|
||
device = "/dev/disk/by-label/SYSTEM";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@nix" "noatime" ];
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/disk/by-label/SYSTEM";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@home" "noatime" "compress=zstd" ];
|
||
};
|
||
fileSystems."/swap" = {
|
||
device = "/dev/disk/by-label/SYSTEM";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@swap" ];
|
||
};
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-label/ESP";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/ceph" = {
|
||
device = "/dev/disk/by-label/MEDIA";
|
||
fsType = "btrfs";
|
||
options = [ "noatime" "ro" "degraded" "space_cache=v2" "compress=zstd" "_netdev"];
|
||
};
|
||
|
||
fileSystems."/raid" = {
|
||
device = "/dev/disk/by-id/ata-WDC_WD40EZAZ-00SF3B0_WD-WX32DC0RL571";
|
||
fsType = "btrfs";
|
||
options = [ "noatime" "space_cache=v2" "compress=zstd" "_netdev" ];
|
||
};
|
||
# fileSystems."/raid" = {
|
||
# device = "overlay";
|
||
# fsType = "overlay";
|
||
# options = ["lowerdir=/ceph" "upperdir=/mnt/upperdir" "workdir=/mnt/workdir"];
|
||
# };
|
||
# fileSystems."/ceph/10_roms" = {
|
||
# device = "admin@2ab18802-7fa6-11ef-b66f-14ac604688a3.roms=/";
|
||
# fsType = "ceph";
|
||
# options = [ "_netdev" ];
|
||
# };
|
||
#
|
||
# fileSystems."/ceph/30_media" = {
|
||
# device = "admin@2ab18802-7fa6-11ef-b66f-14ac604688a3.media=/";
|
||
# fsType = "ceph";
|
||
# options = [ "_netdev" ];
|
||
# };
|
||
# fileSystems."/ceph/services" = {
|
||
# device = "admin@2ab18802-7fa6-11ef-b66f-14ac604688a3.services=/";
|
||
# fsType = "ceph";
|
||
# options = [ "_netdev" ];
|
||
# };
|
||
#
|
||
|
||
# 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.networkmanager.enable = lib.mkDefault true; # Easiest to use and most distros use this by default.
|
||
# BTRFS scrub
|
||
services.btrfs.autoScrub.enable = true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware = {
|
||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
pulseaudio.enable = true;
|
||
pulseaudio.support32Bit = true; ## If compatibility with 32-bit applications is desired.
|
||
};
|
||
}
|
||
|