2023-10-02 20:21:34 +02:00
|
|
|
{ my, pkgs, ... }:
|
2023-06-08 21:38:44 +02:00
|
|
|
|
|
|
|
{
|
2024-01-15 17:07:51 +01:00
|
|
|
imports = [
|
2024-05-07 01:00:09 +02:00
|
|
|
../secrets/machines/zero.nix
|
2024-01-15 17:07:51 +01:00
|
|
|
../system/automation-target.nix
|
|
|
|
../system/desktop.nix
|
|
|
|
../system/ucode-amd.nix
|
|
|
|
];
|
2023-06-08 21:38:44 +02:00
|
|
|
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules =
|
|
|
|
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
2023-06-14 16:33:41 +02:00
|
|
|
|
|
|
|
boot.blacklistedKernelModules = [ "acpi_cpufreq" ];
|
|
|
|
boot.kernelParams = [ "amd_pstate=active" "amdgpu.sg_display=0" ];
|
2023-06-08 21:38:44 +02:00
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/B369-D2FE";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/5151f79a-fca4-45d4-8bd9-66f157a1d51f";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home" = {
|
|
|
|
device = "/dev/disk/by-uuid/5151f79a-fca4-45d4-8bd9-66f157a1d51f";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@home" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/nix" = {
|
|
|
|
device = "/dev/disk/by-uuid/5151f79a-fca4-45d4-8bd9-66f157a1d51f";
|
|
|
|
fsType = "btrfs";
|
2023-07-28 10:50:53 +02:00
|
|
|
options = [ "noatime" "subvol=@nix" ];
|
2023-06-08 21:38:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/var/log" = {
|
|
|
|
device = "/dev/disk/by-uuid/5151f79a-fca4-45d4-8bd9-66f157a1d51f";
|
|
|
|
fsType = "btrfs";
|
2023-07-28 10:50:53 +02:00
|
|
|
options = [ "noatime" "subvol=@log" ];
|
2023-06-08 21:38:44 +02:00
|
|
|
};
|
|
|
|
|
2023-10-26 21:01:31 +02:00
|
|
|
networking.interfaces.eno1.wakeOnLan.enable = true;
|
2023-06-08 21:38:44 +02:00
|
|
|
|
|
|
|
home-manager.users.christoph = {
|
2023-08-22 20:48:56 +02:00
|
|
|
my = {
|
2023-10-08 15:35:34 +02:00
|
|
|
applications.personal.enable = true;
|
2023-08-22 20:48:56 +02:00
|
|
|
emails.personal.enable = true;
|
|
|
|
terminal.fontSize = 10.5;
|
|
|
|
};
|
2023-06-08 21:38:44 +02:00
|
|
|
|
2023-10-02 20:21:34 +02:00
|
|
|
home.packages = with pkgs; [ prismlauncher ];
|
|
|
|
|
2023-06-08 21:38:44 +02:00
|
|
|
wayland.windowManager.sway.config = let
|
|
|
|
inherit (my.machines.zero) displays;
|
|
|
|
# Assigns five workspaces, starting at `base`, to output `output`.
|
|
|
|
makeWorkspaceOutputAssignList = base: output:
|
|
|
|
builtins.genList (x: {
|
|
|
|
inherit output;
|
|
|
|
workspace = toString (base + x);
|
|
|
|
}) 5;
|
|
|
|
in {
|
|
|
|
workspaceOutputAssign =
|
|
|
|
(makeWorkspaceOutputAssignList 1 (builtins.elemAt displays 0))
|
|
|
|
++ (makeWorkspaceOutputAssignList 6 (builtins.elemAt displays 1));
|
|
|
|
|
2024-01-03 00:34:22 +01:00
|
|
|
assigns."6" = [{ app_id = "firefox"; }];
|
2023-06-08 21:38:44 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|