System/machines/productivity-vm/home.nix

73 lines
1.7 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;
util = { wine = true; };
2023-04-26 01:21:29 -04:00
git = { gpgSign = false; };
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
};
2023-04-26 01:21:29 -04:00
# Setup git commit signing with ssh key
programs.git = {
extraConfig = {
commit.gpgsign = true;
gpg.format = "ssh";
user.signingkey = "~/.ssh/id_ed25519.pub";
};
};
2023-04-25 23:39:37 -04:00
}