blob: 5b98fc15d6b9487497b040a07c2f39a9d1e97df8 (
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
|
{ lib, pkgs, namespace, ... }:
with lib; with lib.${namespace}; {
imports = [
./hardware.nix
./network.nix
];
cxl = {
system = {
hostname = "c-pc";
id = "23ce94ff";
impermanence.enable = true;
fonts.nerdfonts = true;
fonts.extra = with pkgs; [
minecraftia
];
};
suites = {
common.enable = true;
desktop.enable = true;
gaming.enable = true;
};
apps.i3 = {
videoDrivers = [ "amdgpu" ];
#TODO: migrate to services.autorandr
setupCommands = ''
if ${pkgs.xorg.xrandr}/bin/xrandr --query | grep 2560x1080; then
${pkgs.xorg.xrandr}/bin/xrandr --output DVI-D-0 --mode 1920x1080 --rate 60 --pos 0x0
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-2 --mode 2560x1080 --rate 60 --pos 1920x0 --primary
${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-A-0 --mode 1920x1080 --rate 75 --pos 4480x0
elif ${pkgs.xorg.xrandr}/bin/xrandr --query | grep 2560x1440; then
${pkgs.xorg.xrandr}/bin/xrandr --output DVI-D-0 --mode 1920x1080 --rate 60 --pos 0x360
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-2 --mode 2560x1440 --rate 165 --pos 1920x0 --primary
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-1 --mode 1920x1200 --rate 60 --pos 4480x0
fi
'';
};
};
snowfallorg.users."c" = {
admin = true;
};
system.stateVersion = "23.11";
}
|