Merge branch 'master' of 192.168.1.126:TheCrazyInsanity/nixos-configv3
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
../../modules/development/default.nix
|
||||
../../modules/fabrication/default.nix
|
||||
../../modules/gaming/default.nix
|
||||
../../modules/kde/default.nix
|
||||
../../modules/sway/default.nix
|
||||
../../modules/virtualization/default.nix
|
||||
# ../../modules/vr/default.nix
|
||||
# ../../global/eraseyourdarlings.nix
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
# services.tlp.enable = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"thunderbolt"
|
||||
@@ -27,13 +29,13 @@
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/d9fee0ac-b35f-4d21-9461-3497af72d8bd";
|
||||
device = "/dev/disk/by-label/NIXROOT";
|
||||
fsType = "ext4";
|
||||
};
|
||||
boot.resumeDevice = "/dev/disk/by-uuid/d9fee0ac-b35f-4d21-9461-3497af72d8bd";
|
||||
boot.resumeDevice = "/dev/disk/by-label/NIXSWAP";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/299C-03A0";
|
||||
device = "/dev/disk/by-label/NIXBOOT";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0022"
|
||||
@@ -43,14 +45,13 @@
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/.swapfile";
|
||||
size = 16 * 1024;
|
||||
device = "/dev/disk/by-label/NIXSWAP";
|
||||
}
|
||||
];
|
||||
|
||||
services.power-profiles-daemon.enable = true;
|
||||
# Suspend first then hibernate when closing the lid
|
||||
services.logind.settings.Login.LidSwitch = "suspend-then-hibernate";
|
||||
services.logind.settings.Login.LidSwitch = "ignore";
|
||||
# Hibernate on power button pressed
|
||||
services.logind.settings.Login.PowerKey = "hibernate";
|
||||
services.logind.settings.Login.PowerKeyLongPress = "poweroff";
|
||||
@@ -58,14 +59,27 @@
|
||||
# Suspend first
|
||||
boot.kernelParams = [
|
||||
"mem_sleep_default=deep"
|
||||
"resume_offset=62050304"
|
||||
];
|
||||
|
||||
# Define time delay for hibernation
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=15m
|
||||
SuspendState=mem
|
||||
'';
|
||||
systemd.sleep.settings.Sleep = {
|
||||
HibernateDelaySec = 300;
|
||||
};
|
||||
|
||||
# facial recognition
|
||||
security.pam.howdy.enable = true;
|
||||
services.howdy.enable = true;
|
||||
services.linux-enable-ir-emitter.enable = true; # lmao
|
||||
# by default face is good enough
|
||||
security.pam.howdy.control = "sufficient";
|
||||
services.howdy.settings = {
|
||||
core = {
|
||||
workaround = "off";
|
||||
};
|
||||
video = {
|
||||
timeout = "20";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
imports = [
|
||||
../../home/default.nix
|
||||
../../modules/sway/home.nix
|
||||
# ../../modules/kde/home.nix
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user