2023-08-20 02:54:19 -06:00
|
|
|
{ config, lib, pkgs, inputs, forEachUser, ... }:
|
2020-11-29 19:09:07 -07:00
|
|
|
|
|
|
|
{
|
2021-07-10 15:34:16 -06:00
|
|
|
imports = [
|
2023-08-20 04:25:58 -06:00
|
|
|
../configuration.nix
|
2021-07-10 15:34:16 -06:00
|
|
|
];
|
2020-11-29 19:09:07 -07:00
|
|
|
|
2023-08-20 04:25:58 -06:00
|
|
|
features.full.enable = true;
|
2023-08-22 12:32:05 -06:00
|
|
|
# Needed for now because monitors have different refresh rates
|
|
|
|
modules.xmonad.picom.vSync.enable = false;
|
2023-10-29 21:25:04 -06:00
|
|
|
modules.cache-server = {
|
|
|
|
enable = true;
|
|
|
|
port = 3090;
|
|
|
|
};
|
2023-09-24 22:45:43 -06:00
|
|
|
modules.gitea-runner.enable = true;
|
2024-01-03 13:45:20 -07:00
|
|
|
modules.postgres.enable = true;
|
2023-08-20 02:54:19 -06:00
|
|
|
|
2023-08-16 07:29:47 -06:00
|
|
|
boot.loader.systemd-boot.configurationLimit = 5;
|
|
|
|
|
2023-06-29 00:49:50 -06:00
|
|
|
networking.hostName = "ryzen-shine";
|
|
|
|
|
2023-06-13 22:20:08 -06:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
linuxPackages_latest.perf
|
|
|
|
];
|
|
|
|
|
2023-08-07 21:53:03 -06:00
|
|
|
boot.initrd.systemd.enable = true;
|
|
|
|
boot.plymouth = {
|
2023-08-19 14:55:27 -06:00
|
|
|
enable = false;
|
2023-08-07 21:53:03 -06:00
|
|
|
};
|
|
|
|
|
2023-07-28 15:44:59 -06:00
|
|
|
services.autorandr = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2021-07-11 20:01:54 -06:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
2020-11-29 19:09:07 -07:00
|
|
|
networking.interfaces.enp5s0.useDHCP = true;
|
|
|
|
networking.interfaces.wlp4s0.useDHCP = true;
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
|
|
|
boot.initrd.luks.devices."cryptroot".device = "/dev/nvme0n1p5";
|
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
|
|
|
|
# install nvidia drivers in addition to intel one
|
2024-08-11 17:52:17 -06:00
|
|
|
hardware.graphics.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ];
|
|
|
|
hardware.graphics.extraPackages32 = [ pkgs.linuxPackages.nvidia_x11.lib32 ];
|
2020-11-29 19:09:07 -07:00
|
|
|
services.xserver = {
|
|
|
|
videoDrivers = [ "nvidia" ];
|
|
|
|
};
|
|
|
|
|
2021-07-18 20:19:06 -06:00
|
|
|
hardware.nvidia.modesetting.enable = true;
|
|
|
|
|
2024-08-11 17:52:17 -06:00
|
|
|
hardware.graphics.enable32Bit = true;
|
2021-07-18 20:19:06 -06:00
|
|
|
|
2020-11-29 19:09:07 -07:00
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2023-06-29 00:49:50 -06:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/356173ab-d076-43e0-aeb6-6a6829c4402b";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2020-11-29 19:09:07 -07:00
|
|
|
|
2023-06-29 00:49:50 -06:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/B270-C7E6";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2022-10-06 19:41:48 -06:00
|
|
|
|
2023-06-29 00:49:50 -06:00
|
|
|
fileSystems."/shared" = {
|
|
|
|
device = "/dev/disk/by-uuid/D4009CE8009CD33A";
|
|
|
|
fsType = "ntfs";
|
|
|
|
options = [ "nofail" ];
|
|
|
|
};
|
2020-11-29 19:09:07 -07:00
|
|
|
|
2024-06-10 19:40:56 -06:00
|
|
|
swapDevices = [
|
2023-06-29 00:49:50 -06:00
|
|
|
{ device = "/dev/disk/by-uuid/f719b44e-295a-4909-9a60-84f87acb7f77"; }
|
|
|
|
];
|
2020-11-29 19:09:07 -07:00
|
|
|
|
2022-10-07 08:43:06 -06:00
|
|
|
# nix.settings.maxJobs = lib.mkDefault 16;
|
2020-11-29 19:09:07 -07:00
|
|
|
# High-DPI console
|
|
|
|
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
|
|
|
|
2023-08-15 15:39:02 -06:00
|
|
|
# services.xrdp.enable = true;
|
|
|
|
# services.xrdp.defaultWindowManager = "startplasma-x11";
|
|
|
|
# services.xrdp.openFirewall = true;
|
2023-08-03 15:19:28 -06:00
|
|
|
|
2021-07-17 23:00:46 -06:00
|
|
|
system.stateVersion = "20.03";
|
2023-08-20 02:54:19 -06:00
|
|
|
home-manager.users = forEachUser {
|
|
|
|
home.stateVersion = "21.05";
|
|
|
|
};
|
2023-07-19 12:43:03 -06:00
|
|
|
|
|
|
|
users.extraUsers.dean.home = "/shared/dean";
|
2020-11-29 19:09:07 -07:00
|
|
|
}
|