2022-01-11 18:44:40 +01: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, inputs, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
2022-01-13 17:13:25 +01:00
|
|
|
|
# inputs.nixos-hardware.nixosModules.microsoft-surface
|
2022-01-11 18:44:40 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Kernel Modules
|
|
|
|
|
boot = {
|
|
|
|
|
initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
|
initrd.kernelModules = [ ];
|
2022-01-13 17:13:25 +01:00
|
|
|
|
kernelPackages = pkgs.linuxPackages_zen;
|
2022-01-11 18:44:40 +01:00
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
|
|
|
|
kernelModules = [ "kvm-intel" "v4l2loopback" ];
|
|
|
|
|
loader = {
|
|
|
|
|
systemd-boot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
configurationLimit = 10;
|
|
|
|
|
};
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Modules
|
|
|
|
|
modules.hardware = {
|
|
|
|
|
audio = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableExtraCompat = true;
|
|
|
|
|
};
|
|
|
|
|
graphics.enable = true;
|
|
|
|
|
fs = {
|
|
|
|
|
enable = true;
|
|
|
|
|
ssd.enable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# HiDPI
|
|
|
|
|
hardware.video.hidpi.enable = true;
|
|
|
|
|
|
|
|
|
|
# CPU
|
|
|
|
|
nix.maxJobs = lib.mkDefault 4;
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
|
|
|
|
|
|
# Power Management
|
|
|
|
|
powerManagement = {
|
|
|
|
|
powertop.enable = true;
|
|
|
|
|
cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
brightnessctl
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Filesystems
|
|
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
2022-01-14 20:37:41 +01:00
|
|
|
|
device = "/dev/disk/by-uuid/b892a566-b6d7-4f62-a384-71ccca4ff4d8";
|
2022-01-11 18:44:40 +01:00
|
|
|
|
fsType = "f2fs";
|
2022-01-14 14:48:03 +01:00
|
|
|
|
options = [ "defaults" "noatime" "nodiratime" ];
|
2022-01-11 18:44:40 +01:00
|
|
|
|
};
|
|
|
|
|
|
2022-01-14 20:37:41 +01:00
|
|
|
|
"/home" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/f3a44427-a212-48c2-91e7-f40e82bbcc02";
|
2022-01-29 12:47:38 +01:00
|
|
|
|
fsType = "f2fs";
|
|
|
|
|
options = [ "defaults" "noatime" "nodiratime" ];
|
2022-01-14 20:37:41 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/etc/dotfiles" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/2777d90a-20f0-4b35-88f1-653ba14114db";
|
2022-01-29 12:47:38 +01:00
|
|
|
|
fsType = "f2fs";
|
|
|
|
|
options = [ "defaults" "noatime" "nodiratime" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/C507-604E";
|
2022-01-11 18:44:40 +01:00
|
|
|
|
fsType = "vfat";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/home/aether/Downloads" = {
|
2022-01-13 17:13:25 +01:00
|
|
|
|
device = "none";
|
2022-01-11 18:44:40 +01:00
|
|
|
|
fsType = "tmpfs";
|
|
|
|
|
};
|
2022-01-29 12:47:38 +01:00
|
|
|
|
|
2022-01-13 17:13:25 +01:00
|
|
|
|
"/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/bf2d91f1-a6b3-4629-8755-76301b3f6f56";
|
2022-01-29 12:47:38 +01:00
|
|
|
|
# fsType = "f2fs";
|
2022-01-13 17:13:25 +01:00
|
|
|
|
options = [ "defaults" "noatime" "nodiratime" "user" "nofail" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/home/aether/Videos" = {
|
2022-01-29 12:47:38 +01:00
|
|
|
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/Videos";
|
2022-01-13 17:13:25 +01:00
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/home/aether/Pictures" = {
|
|
|
|
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/Pictures";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/home/aether/Documents" = {
|
|
|
|
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/Documents";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
2022-01-14 14:48:03 +01:00
|
|
|
|
|
2022-01-13 17:13:25 +01:00
|
|
|
|
"/home/aether/Music" = {
|
|
|
|
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home delta/home delta delta/Music";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
2022-04-20 10:53:28 +02:00
|
|
|
|
|
|
|
|
|
"/home/aether/Textures" = {
|
|
|
|
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home\ delta/Textures";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"/home/aether/Porn" = {
|
|
|
|
|
device = "/run/media/aether/bf2d91f1-a6b3-4629-8755-76301b3f6f56/home\ delta/Porn";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
2022-01-11 18:44:40 +01:00
|
|
|
|
};
|
|
|
|
|
|
2022-01-14 20:37:41 +01:00
|
|
|
|
swapDevices = [{ device = "/dev/disk/by-uuid/e4a7edca-2c4e-4979-8368-377bc067b8bd"; }];
|
2022-01-29 12:47:38 +01:00
|
|
|
|
|
|
|
|
|
# Allows for hibernation
|
|
|
|
|
boot.resumeDevice = "/dev/disk/by-uuid/e4a7edca-2c4e-4979-8368-377bc067b8bd";
|
2022-01-11 18:44:40 +01:00
|
|
|
|
}
|