2024-01-04 17:20:02 -06:00
|
|
|
{
|
2024-02-16 16:32:14 -06:00
|
|
|
# config,
|
2024-01-04 17:20:02 -06:00
|
|
|
inputs,
|
|
|
|
outputs,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
networking.hostName = "dragon";
|
|
|
|
|
|
|
|
# support interacting with the windows drive
|
|
|
|
boot.supportedFilesystems = ["ntfs"];
|
|
|
|
|
2024-01-06 11:43:30 -06:00
|
|
|
imports = with outputs.nixosModules; [
|
2024-02-16 16:10:36 -06:00
|
|
|
outputs.diskoConfigurations.standard
|
2024-01-06 11:43:30 -06:00
|
|
|
inputs.hardware.nixosModules.common-cpu-amd
|
|
|
|
inputs.hardware.nixosModules.common-pc-ssd
|
|
|
|
outputs.nixosModules.pipewire-low-latency
|
|
|
|
|
|
|
|
desktop-usage
|
|
|
|
podman
|
2024-02-29 09:51:49 -06:00
|
|
|
kde-plasma
|
2024-01-06 11:43:30 -06:00
|
|
|
postgres
|
|
|
|
wifi
|
|
|
|
hyprland
|
|
|
|
printing
|
|
|
|
ewwbar
|
2024-01-13 23:43:06 -06:00
|
|
|
melee
|
2024-01-06 11:43:30 -06:00
|
|
|
];
|
|
|
|
|
2024-01-13 23:43:06 -06:00
|
|
|
programs.steam.enable = true;
|
|
|
|
programs.steam.remotePlay.openFirewall = true;
|
|
|
|
|
2024-02-29 09:51:49 -06:00
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
spotify
|
|
|
|
discord
|
|
|
|
radeontop
|
|
|
|
slack
|
|
|
|
godot_4
|
|
|
|
fractal
|
|
|
|
prismlauncher
|
|
|
|
variety # wallpaper switcher that I use with GNOME
|
|
|
|
radeontop
|
|
|
|
sops
|
|
|
|
obs-studio
|
|
|
|
xh
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-01-06 11:43:30 -06:00
|
|
|
home-manager.users.daniel = {
|
|
|
|
imports = with outputs.homeManagerModules; [
|
|
|
|
sway
|
|
|
|
pass
|
2024-02-02 22:38:32 -06:00
|
|
|
firefox-no-tabs
|
2024-02-29 09:51:49 -06:00
|
|
|
wallpaper-manager
|
2024-01-13 23:43:06 -06:00
|
|
|
melee
|
2024-02-16 16:10:36 -06:00
|
|
|
# hyprland
|
2024-01-06 11:43:30 -06:00
|
|
|
];
|
|
|
|
|
2024-02-16 16:10:36 -06:00
|
|
|
# ssbm = {
|
|
|
|
# slippi-launcher = {
|
|
|
|
# isoPath = "${config.home-manager.users.daniel.home.homeDirectory}/../games/roms/dolphin/melee.iso";
|
|
|
|
# };
|
|
|
|
# };
|
2024-01-06 11:43:30 -06:00
|
|
|
|
2024-02-29 09:51:49 -06:00
|
|
|
services.mako.enable = lib.mkForce false; # don't use mako when using plasma
|
|
|
|
|
2024-01-06 11:43:30 -06:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
settings = {
|
|
|
|
env = [
|
|
|
|
"EWW_BAR_MON,1"
|
|
|
|
];
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
|
|
monitor = [
|
|
|
|
"DP-3,3840x2160@120,0x0,1"
|
|
|
|
];
|
|
|
|
input = {
|
|
|
|
force_no_accel = true;
|
|
|
|
sensitivity = 1; # -1.0 - 1.0, 0 means no modification.
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
config = {
|
|
|
|
output = {
|
|
|
|
"GIGA-BYTE TECHNOLOGY CO., LTD. AORUS FO48U 23070B000307" = {
|
|
|
|
mode = "3840x2160@120Hz";
|
|
|
|
position = "${toString (builtins.ceil (2160 / 1.5))},0";
|
|
|
|
};
|
|
|
|
|
|
|
|
"Dell Inc. DELL U2720Q D3TM623" = {
|
|
|
|
# desktop left vertical monitor
|
|
|
|
mode = "3840x2160@60Hz";
|
|
|
|
transform = "90";
|
|
|
|
scale = "1.5";
|
|
|
|
position = "0,0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
workspaceOutputAssign =
|
|
|
|
(
|
|
|
|
map
|
|
|
|
(ws: {
|
|
|
|
output = "GIGA-BYTE TECHNOLOGY CO., LTD. AORUS FO48U 23070B000307";
|
|
|
|
workspace = toString ws;
|
|
|
|
})
|
|
|
|
(lib.range 1 7)
|
|
|
|
)
|
|
|
|
++ (
|
|
|
|
map
|
|
|
|
(ws: {
|
|
|
|
output = "Dell Inc. DELL U2720Q D3TM623";
|
|
|
|
workspace = toString ws;
|
|
|
|
})
|
|
|
|
(lib.range 8 9)
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-01-04 17:20:02 -06:00
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
# TODO: https://nixos.wiki/wiki/Remote_LUKS_Unlocking
|
|
|
|
|
|
|
|
# hardware
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci"];
|
|
|
|
boot.kernelModules = ["kvm-amd"];
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowPing = true;
|
|
|
|
allowedTCPPorts = [22 7777];
|
|
|
|
allowedUDPPorts = [];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.udev.packages = [
|
|
|
|
pkgs.platformio
|
|
|
|
pkgs.openocd
|
|
|
|
];
|
|
|
|
programs.adb.enable = true;
|
|
|
|
users.users.daniel.extraGroups = ["adbusers"];
|
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|