225 lines
4.9 KiB
Nix
Executable File
225 lines
4.9 KiB
Nix
Executable File
{
|
|
lib,
|
|
pkgs,
|
|
namespace,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.${namespace}) enabled disabled;
|
|
displayLeft = {
|
|
input = "DP-1";
|
|
resolution = "3840x2160";
|
|
refreshRate = "120.00000";
|
|
};
|
|
displayRight = {
|
|
input = "DP-2";
|
|
resolution = "3840x2160";
|
|
refreshRate = "240.00000";
|
|
};
|
|
in
|
|
{
|
|
home.username = "matt";
|
|
|
|
${namespace} = {
|
|
sops = {
|
|
enable = true;
|
|
};
|
|
shell-aliases = {
|
|
enable = true;
|
|
};
|
|
|
|
desktop.plasma = enabled;
|
|
|
|
programs = {
|
|
vesktop = enabled;
|
|
opencode = enabled;
|
|
thunderbird = enabled;
|
|
hyprland = {
|
|
enable = false;
|
|
primaryDisplay = "DP-1";
|
|
|
|
monitorv2 = [
|
|
{
|
|
name = displayLeft.input;
|
|
mode = "${displayLeft.resolution}@${displayLeft.refreshRate}";
|
|
position = "0x0";
|
|
scale = 1.0;
|
|
extra = [
|
|
# "bitdepth"
|
|
# "10"
|
|
# "cm"
|
|
# "hdredid"
|
|
# "sdrbrightness"
|
|
# "1.2"
|
|
# "sdrsaturation"
|
|
# "0.98"
|
|
];
|
|
}
|
|
{
|
|
name = displayRight.input;
|
|
mode = "${displayRight.resolution}@${displayRight.refreshRate}";
|
|
position = "3840x0";
|
|
scale = 1.0;
|
|
extra = [
|
|
# "bitdepth"
|
|
# "10"
|
|
# "cm"
|
|
# "hdredid"
|
|
# "sdrbrightness"
|
|
# "1.5"
|
|
# "sdrsaturation"
|
|
# "0.98"
|
|
];
|
|
}
|
|
];
|
|
|
|
workspace = [
|
|
"name:firefox, monitor:${displayRight.input}, default:false, special, class:(.*firefox.*)"
|
|
"name:discord, monitor:${displayRight.input}, default:true, special, title:(.*vesktop.*), title:(.*Apple Music.*)"
|
|
"name:steam, monitor:${displayLeft.input}, default:false, special, class:(.*[Ss]team.*)"
|
|
];
|
|
|
|
windowRule = [
|
|
"match:tag horizonrdp, size 2160 7680"
|
|
];
|
|
|
|
autostartCommands = [
|
|
"[silent] firefox"
|
|
"[silent] discord"
|
|
"[silent] chromium --app=\"https://music.apple.com\""
|
|
"[silent] steam"
|
|
];
|
|
|
|
hyprpaper = {
|
|
wallpaperPath = "/run/wallpaper.jpg";
|
|
};
|
|
|
|
keybinds = {
|
|
bind = [
|
|
"$mod, A, exec, chromium --app=\"https://music.apple.com\""
|
|
"$mod, C, exec, discord"
|
|
"$mod, G, exec, steam"
|
|
];
|
|
};
|
|
|
|
defaultApps = {
|
|
browser = pkgs.firefox;
|
|
};
|
|
};
|
|
btop = enabled;
|
|
kitty = disabled;
|
|
mako = disabled;
|
|
nwg-dock = disabled;
|
|
nwg-drawer = disabled;
|
|
nwg-panel = disabled;
|
|
waybar = {
|
|
enable = false;
|
|
|
|
layer = "bottom";
|
|
|
|
network.interface = "wlp9s0";
|
|
temperature = {
|
|
cpu = enabled;
|
|
gpu = enabled;
|
|
};
|
|
|
|
extraModules = {
|
|
"custom/lights" = {
|
|
tooltip = false;
|
|
exec = "waybar-hass --get_light light.living_room_lights";
|
|
interval = "once";
|
|
format = "{text}"; # "";
|
|
on-click = "waybar-hass --toggle_light light.living_room_lights";
|
|
return-type = "json";
|
|
};
|
|
};
|
|
|
|
extraModulesStyle = ''
|
|
#custom-lights {
|
|
color: @base0C;
|
|
background-color: @base00;
|
|
opacity: 0.85;
|
|
border-left: 5px solid @base0C;
|
|
}
|
|
|
|
#custom-lights:hover {
|
|
background: @base03;
|
|
}
|
|
'';
|
|
};
|
|
wlogout = disabled;
|
|
wofi = disabled;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
remmina = {
|
|
enable = true;
|
|
addRdpMimeTypeAssoc = true;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
password-store = enabled;
|
|
};
|
|
|
|
home.packages =
|
|
with pkgs;
|
|
[
|
|
atlauncher
|
|
bolt-launcher
|
|
clevis
|
|
compose2nix
|
|
distrobox
|
|
goverlay
|
|
heroic
|
|
home-manager
|
|
omnissa-horizon-client
|
|
jq
|
|
lzip
|
|
morph
|
|
orca-slicer
|
|
piper
|
|
prismlauncher
|
|
protontricks
|
|
runelite
|
|
smile
|
|
via
|
|
virt-manager
|
|
vorta
|
|
waydroid-helper
|
|
# winboat
|
|
]
|
|
++ (with pkgs.${namespace}; [
|
|
discord-krisp
|
|
# librepods
|
|
]);
|
|
|
|
specialisation = {
|
|
"gnome".configuration = {
|
|
${namespace} = {
|
|
desktop = {
|
|
plasma = lib.mkForce disabled;
|
|
gnome = lib.mkForce enabled;
|
|
};
|
|
};
|
|
};
|
|
"cosmic".configuration = {
|
|
${namespace} = {
|
|
desktop.plasma = lib.mkForce disabled;
|
|
programs = {
|
|
hyprland = lib.mkForce disabled;
|
|
kitty = lib.mkForce disabled;
|
|
mako = lib.mkForce disabled;
|
|
nwg-dock = lib.mkForce disabled;
|
|
nwg-drawer = lib.mkForce disabled;
|
|
nwg-panel = lib.mkForce disabled;
|
|
waybar = lib.mkForce disabled;
|
|
wlogout = lib.mkForce disabled;
|
|
wofi = lib.mkForce disabled;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|