2023-08-20 04:34:42 -06:00
|
|
|
{ config, lib, pkgs, inputs, forEachUser, ... }:
|
2023-06-28 21:30:23 -06:00
|
|
|
{
|
|
|
|
imports = [
|
2023-08-20 04:25:58 -06:00
|
|
|
../configuration.nix
|
2023-06-28 21:30:23 -06:00
|
|
|
];
|
|
|
|
|
2023-08-20 04:25:58 -06:00
|
|
|
features.full.enable = true;
|
2024-03-22 16:50:54 -06:00
|
|
|
modules.cache-server = {
|
|
|
|
enable = true;
|
|
|
|
port = 3090;
|
|
|
|
};
|
2023-09-25 03:19:11 -06:00
|
|
|
modules.gitea-runner.enable = true;
|
2024-05-07 14:09:44 -06:00
|
|
|
modules.vscode.enable = true;
|
2024-09-07 12:21:58 -06:00
|
|
|
modules.kat.enable = true;
|
2023-08-20 04:25:58 -06:00
|
|
|
|
2023-06-28 21:30:23 -06:00
|
|
|
networking.hostName = "nixquick";
|
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
boot.loader.systemd-boot.enable = 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 ];
|
|
|
|
services.xserver = {
|
|
|
|
videoDrivers = [ "nvidia" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
|
|
|
hardware.nvidia.modesetting.enable = true;
|
|
|
|
|
2023-07-18 11:51:28 -06:00
|
|
|
# This also enables v4l2loopback
|
|
|
|
programs.droidcam.enable = true;
|
|
|
|
|
2023-06-28 21:30:23 -06:00
|
|
|
fileSystems."/" =
|
|
|
|
{ device = "/dev/disk/by-uuid/64a7c1f5-727a-413c-81a2-cb108728cff6";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
{ device = "/dev/disk/by-uuid/EE25-DC15";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices =
|
|
|
|
[ { device = "/dev/disk/by-uuid/c0dcff59-8072-48fb-b242-a7a1797e4b48"; }
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2023-06-29 00:49:50 -06:00
|
|
|
networking.useDHCP = lib.mkDefault true;
|
2023-06-28 21:30:23 -06:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-06-28 22:43:29 -06:00
|
|
|
|
2023-07-28 17:31:37 -06:00
|
|
|
services.xrdp.enable = true;
|
|
|
|
services.xrdp.defaultWindowManager = "startplasma-x11";
|
2023-08-03 15:19:28 -06:00
|
|
|
services.xrdp.openFirewall = true;
|
2023-07-28 17:31:37 -06:00
|
|
|
|
2023-08-20 04:34:42 -06:00
|
|
|
home-manager.users = forEachUser {
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
};
|
|
|
|
|
2023-06-28 22:43:29 -06:00
|
|
|
system.stateVersion = "23.11";
|
2023-06-28 22:29:22 -06:00
|
|
|
}
|