# 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") ./common.nix ./kde.nix #./gnome.nix ]; networking.hostName = "lindy"; networking.hostId = "00000000"; # ZFS config boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; boot.supportedFilesystems = [ "zfs" ]; boot.zfs.devNodes = "/dev/mapper"; boot.zfs.extraPools = [ "Zonz" ]; services.zfs.autoScrub.enable = true; services.zfs.autoScrub.pools = [ "Zonz" ]; environment.systemPackages = [ pkgs.zfs ]; # Use Grub boot.loader.grub.enable = true; boot.loader.grub.device = "nodev"; boot.loader.grub.extraGrubInstallArgs = [ "--bootloader-id=NixOS" ]; boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.canTouchEfiVariables = true; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" "wl" ]; boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; boot.initrd.luks.devices = { cryptssd = { device = "/dev/disk/by-uuid/1b074a78-9116-420e-b872-7bf49ca10ce1"; allowDiscards = true; }; }; environment.etc.crypttab = { enable = true; text = '' Kurisu UUID=f593d307-66cc-4586-a899-f1ca20d74430 /root/kurisu_key Kogami UUID=61534c91-df18-4c71-9244-54e677f5d4fa /root/kogami_key ''; }; fileSystems."/" = { device = "/dev/disk/by-uuid/2e64e6fc-ab7c-4620-b56b-faee641bd2a6"; fsType = "ext4"; options = [ "discard" ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/1ef4b6f4-975d-4e04-9d88-0640e83ed0b4"; fsType = "ext4"; options = [ "discard" ]; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/0728e7e5-8e21-44bd-9287-eb066d489a0e"; fsType = "ext4"; options = [ "discard" ]; }; fileSystems."/boot/efi" = { device = "/dev/disk/by-uuid/02D0-F1C6"; fsType = "vfat"; }; swapDevices = [{ device = "/dev/disk/by-uuid/5950785a-9793-4d04-b791-8f4dbc497ec3"; }]; users.users.lx.home = "/home/lx.nix"; # Nvidia graphics services.xserver.videoDrivers = [ "nvidia" ]; hardware.opengl.enable = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }