2022-05-27 15:59:00 +02:00
|
|
|
{ config, lib, pkgs, agenix, ... }:
|
2022-01-10 19:25:34 +01:00
|
|
|
|
|
|
|
{
|
2022-07-25 13:31:09 +02:00
|
|
|
imports = [
|
|
|
|
agenix.nixosModule
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../modules
|
|
|
|
];
|
|
|
|
|
|
|
|
custom = {
|
|
|
|
gui = {
|
|
|
|
enable = true;
|
|
|
|
theme = (import ../../colors.nix).dark;
|
|
|
|
};
|
|
|
|
kak = {
|
2022-05-19 19:58:26 +02:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
enable = true;
|
2022-05-19 19:58:26 +02:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
haskell = true;
|
|
|
|
rust = true;
|
|
|
|
nix = true;
|
2022-05-19 19:58:26 +02:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
};
|
|
|
|
};
|
2022-01-10 19:25:34 +01:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
system.stateVersion = "21.11";
|
2022-05-15 17:31:45 +02:00
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
networking = {
|
|
|
|
hostName = "thor";
|
|
|
|
interfaces.enp9s0.useDHCP = true;
|
|
|
|
};
|
2022-01-12 00:20:57 +01:00
|
|
|
|
2022-05-23 20:58:06 +02:00
|
|
|
boot = {
|
|
|
|
loader.systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
editor = false;
|
|
|
|
configurationLimit = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
loader.efi = {
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
users.users."riley".packages = with pkgs; [
|
|
|
|
minecraft
|
|
|
|
cockatrice
|
|
|
|
];
|
2022-01-23 17:03:10 +01:00
|
|
|
|
2022-05-28 18:39:28 +02:00
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
|
2022-05-27 16:13:56 +02:00
|
|
|
age.secrets."website-secret".file = ../../secrets/website.age;
|
2022-05-27 15:59:00 +02:00
|
|
|
|
2022-01-12 00:20:57 +01:00
|
|
|
devices = {
|
|
|
|
|
|
|
|
# Audio devices
|
|
|
|
audio = {
|
|
|
|
|
|
|
|
# Outputs
|
|
|
|
speakers = "alsa_output.pci-0000_0c_00.4.analog-stereo";
|
|
|
|
external = "alsa_output.pci-0000_0a_00.1.hdmi-stereo";
|
|
|
|
headset = null; # Thor doesn't have bluetooth support (yet)
|
|
|
|
|
2022-07-25 13:31:09 +02:00
|
|
|
# Inputs
|
2022-01-12 00:20:57 +01:00
|
|
|
main-mic = "alsa_input.usb-046d_C922_Pro_Stream_Webcam_CC9E75BF-02.analog-stereo";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
# Displays
|
|
|
|
video.displays = {
|
|
|
|
|
|
|
|
# Connected to the ultrawide output
|
|
|
|
"HDMI-1" = {
|
|
|
|
primary = true;
|
|
|
|
position = [ 0 0 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Vertical output to the right of HDMI-1
|
|
|
|
"DP-2" = {
|
|
|
|
rotate = "left";
|
|
|
|
position = [ 2560 ((1080 - 1920) / 2) ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2022-01-10 19:25:34 +01:00
|
|
|
}
|