System/machines/productivity-vm/home.nix

69 lines
1.6 KiB
Nix
Raw Normal View History

2023-04-25 23:39:37 -04:00
{ config, lib, pkgs, ... }:
{
nathan = {
# services = { email = { enable = true; }; };
config = { isDesktop = true; };
programs = {
media.enable = false;
2023-04-26 05:40:56 -04:00
util = {
wine = true;
git = {
gpgSign = false;
sshSign = true;
};
2023-04-26 01:24:42 -04:00
};
2023-04-25 23:39:37 -04:00
# games = { launcher = true; };
# media.nicotineService = true;
};
};
home.packages = with pkgs; [ gammastep ];
# Sway outputs
2023-04-26 00:28:14 -04:00
home.sessionVariables = { "WLR_NO_HARDWARE_CURSORS" = "1"; };
2023-04-25 23:39:37 -04:00
wayland.windowManager.sway.config = {
output = {
2023-04-26 00:17:33 -04:00
Virtual-1 = {
scale = "1.25";
subpixel = "rgb";
# max_render_time = "6";
# adaptive_sync = "on";
# render_bit_depth = "10";
};
2023-04-25 23:39:37 -04:00
};
input = { "type:pointer" = { pointer_accel = "-0.3"; }; };
startup = [ ];
};
# Sway background
# Spin up glpaper as a user service so we can have it restart on failure (liable due to kvm switch
# disconnecting input)
systemd.user.services.glpaper-dp1 = {
Unit = {
2023-04-26 00:17:33 -04:00
Description = "glpaper (Virtual-1)";
2023-04-25 23:39:37 -04:00
After = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
2023-04-26 00:17:33 -04:00
/etc/profiles/per-user/nathan/bin/glpaper Virtual-1 ${
2023-04-25 23:39:37 -04:00
../../custom-files/sway/selen.frag
}
'';
Restart = "always";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
# System specific autoruns
systemd.user.services = { };
# Mako output configuration
programs.mako = {
# Lock mako notifs to main display
2023-04-26 00:17:33 -04:00
output = "Virtual-1";
2023-04-25 23:39:37 -04:00
};
}