diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-04-14 19:01:38 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 19:01:38 -0700 |
| commit | e8077fde966e051fc449fffcfa061c7f7edc47b0 (patch) | |
| tree | a0b1ce60f2718f90c64e924ed8df8d5d4f0d2289 /systems/x86_64-linux/c-pc/default.nix | |
| parent | e486d896215e7ef04438809952bc7317512d5765 (diff) | |
migration: finalize
Diffstat (limited to 'systems/x86_64-linux/c-pc/default.nix')
| -rw-r--r-- | systems/x86_64-linux/c-pc/default.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/systems/x86_64-linux/c-pc/default.nix b/systems/x86_64-linux/c-pc/default.nix new file mode 100644 index 0000000..33bec71 --- /dev/null +++ b/systems/x86_64-linux/c-pc/default.nix @@ -0,0 +1,62 @@ +{ lib, pkgs, namespace, ... }: + +with lib; with lib.${namespace}; { + imports = [ + ./hardware.nix + ./network.nix + ]; + + cxl = { + system = { + hostname = "c-pc"; + id = "23ce94ff"; + + impermanence.enable = true; + impermanence.home.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 + ''; + }; + }; + + services = { + printing.enable = true; + hardware.openrgb.enable = true; + udev.enable = true; + }; + + snowfallorg.users."c" = { + admin = true; + }; + + users.users = { + root.hashedPasswordFile = "/secrets/passwords/root"; + "c".hashedPasswordFile = "/secrets/passwords/c"; + }; + + system.stateVersion = "23.11"; +} |