dotfiles/nixos/machines/david-blade.nix

63 lines
1.6 KiB
Nix
Raw Normal View History

2024-06-10 18:25:25 -06:00
{ config, lib, pkgs, forEachUser, ... }:
2019-05-06 22:27:58 -06:00
{
2019-06-08 21:20:03 -06:00
imports = [
../configuration.nix
2019-06-08 21:20:03 -06:00
];
2024-09-26 14:15:27 -06:00
myModules.base.enable = true;
myModules.desktop.enable = true;
myModules.xmonad.enable = false;
myModules.extra.enable = false;
myModules.code.enable = true;
myModules.games.enable = false;
myModules.syncthing.enable = true;
myModules.fonts.enable = true;
myModules.nixified-ai.enable = false;
2021-07-11 22:13:10 -06:00
hardware.enableRedistributableFirmware = true;
2019-07-10 14:36:26 -06:00
# disable card with bbswitch by default since we turn it on only on demand!
hardware.nvidiaOptimus.disable = true;
# install nvidia drivers in addition to intel one
hardware.opengl.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ];
hardware.opengl.extraPackages32 = [ pkgs.linuxPackages.nvidia_x11.lib32 ];
2019-05-06 22:27:58 -06:00
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
services.xserver.libinput.enable = true;
2019-06-08 21:20:03 -06:00
fileSystems."/" = {
2024-06-10 18:25:25 -06:00
device = "/dev/disk/by-uuid/36864608-8e74-42b8-a075-27b59ef2701d";
2019-06-08 21:20:03 -06:00
fsType = "ext4";
};
2019-05-06 22:27:58 -06:00
2019-06-08 21:20:03 -06:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/36E1-BE93";
fsType = "vfat";
};
2020-11-29 18:38:27 -07:00
swapDevices = [
{
device = "/swapfile";
priority = 0;
size = 4096;
}
];
2019-05-06 22:27:58 -06:00
2024-06-10 18:25:25 -06:00
networking.hostName = "david-blade";
2019-05-06 22:27:58 -06:00
2024-06-10 18:25:25 -06:00
home-manager.users = forEachUser {
home.stateVersion = "24.05";
};
2021-07-17 23:00:46 -06:00
2019-05-06 22:27:58 -06:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2024-06-10 18:25:25 -06:00
system.stateVersion = "24.05";
2019-05-06 22:27:58 -06:00
}