blob: b06d450a08f18313a7ecc983641ef79e4452444c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{ lib, config, pkgs, ... }:
with lib;
{
orbekk.simple-firewall.enable = lib.mkForce false;
networking.firewall.enable = true;
orbekk.gaming.enable = true;
orbekk.desktop.enable = true;
orbekk.development.enable = true;
services.printing.enable = true;
services.printing.drivers = with pkgs; [ gutenprint brlaser ];
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [3979];
networking.firewall.allowedUDPPorts = [3979];
services.logind.extraConfig = ''
HandlePowerKey=suspend
'';
nix.gc.persistent = false;
networking.networkmanager.enable = true;
networking.hostName = "dex";
programs.xwayland.enable = true;
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [ river ];
system.autoUpgrade.enable = mkForce false;
security.pam.enableFscrypt = true;
system.activationScripts.fix = ''
chown root /
'';
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sdhci" "sdhci_pci" "cqhci" "mmc_block" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.kernelPackages = pkgs.unstable.linuxPackages_latest;
boot.kernelParams = [
"amd_iommu=off"
"amdgpu.gttsize=8128"
"spi_amd.speed_dev=1"
"audit=0"
];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/52d3077e-d1be-4976-a2ca-f2d879a808c1";
fsType = "ext4";
};
fileSystems."/home" =
{ device = "/dev/disk/by-label/home";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D381-BD0D";
fsType = "vfat";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
system.stateVersion = "23.05"; # Did you read the comment?
}
|