Add library configuration

This commit is contained in:
2024-01-21 01:21:11 +00:00
parent c8b8f2c513
commit 2f3624a6b8
4 changed files with 330 additions and 0 deletions

View File

@ -0,0 +1,113 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
fileSystems."/" = {
device = "rpool/system/root";
fsType = "zfs";
};
fileSystems."/var" = {
device = "rpool/system/var";
fsType = "zfs";
};
fileSystems."/var/log" = {
device = "rpool/system/var/log";
fsType = "zfs";
};
fileSystems."/var/tmp" = {
device = "rpool/system/var/tmp";
fsType = "zfs";
};
fileSystems."/var/lib/containers/storage" = {
device = "rpool/system/var/lib-containers-storage";
fsType = "zfs";
};
fileSystems."/nix" = {
device = "rpool/local/nix";
fsType = "zfs";
};
fileSystems."/tmp" = {
device = "rpool/local/tmp";
fsType = "zfs";
};
fileSystems."/home" = {
device = "rpool/user/home";
fsType = "zfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/F697-F1C0";
fsType = "vfat";
};
fileSystems."/mnt/library" = {
device = "library";
fsType = "zfs";
};
fileSystems."/mnt/library/books" = {
device = "library/books";
fsType = "zfs";
};
fileSystems."/mnt/library/fonts" = {
device = "library/fonts";
fsType = "zfs";
};
fileSystems."/mnt/library/movies" = {
device = "library/movies";
fsType = "zfs";
};
fileSystems."/mnt/library/music" = {
device = "library/music";
fsType = "zfs";
};
fileSystems."/mnt/library/software" = {
device = "library/software";
fsType = "zfs";
};
fileSystems."/mnt/library/tv" = {
device = "library/tv";
fsType = "zfs";
};
fileSystems."/mnt/library/videos" = {
device = "library/videos";
fsType = "zfs";
};
fileSystems."/mnt/library/web" = {
device = "library/web";
fsType = "zfs";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}