System/machines/levitation/home.nix

121 lines
2.9 KiB
Nix
Raw Normal View History

2023-04-30 23:06:47 -04:00
{ config, lib, pkgs, inputs, ... }: {
2022-07-02 02:44:43 -04:00
nathan = {
services = { email = { enable = true; }; };
config = { isDesktop = true; };
2022-07-17 23:24:27 -04:00
programs = {
2023-05-01 17:27:46 -04:00
util = {
wine = true;
git = {
gpgSign = false;
sshSign = true;
};
};
games = { launcher = true; };
2023-02-19 20:03:05 -05:00
media.nicotineService = true;
2022-07-17 23:24:27 -04:00
};
2022-07-02 02:44:43 -04:00
};
2023-04-30 23:17:03 -04:00
home.packages = with pkgs; [
gammastep
fido2luks
(pkgs.makeDesktopItem rec {
name = "VMWare Workstation (Wrapped)";
exec = "${
inputs.self.packages.${pkgs.system}.sommelier
}/bin/sommelier -X --scale 1 vmware";
desktopName = name;
})
];
2023-03-29 00:00:17 -04:00
2022-07-02 02:44:43 -04:00
# Sway outputs
wayland.windowManager.sway.config = {
output = {
2023-03-02 00:05:11 -05:00
DP-1 = {
2023-05-06 21:41:43 -04:00
scale = "1.4";
2022-07-02 02:44:43 -04:00
subpixel = "rgb";
2022-12-10 20:05:07 -05:00
max_render_time = "6";
2023-04-18 17:18:18 -04:00
adaptive_sync = "on";
2023-04-18 18:20:03 -04:00
render_bit_depth = "10";
2022-07-02 02:44:43 -04:00
};
};
2023-01-14 03:09:27 -05:00
input = { "type:pointer" = { pointer_accel = "-0.3"; }; };
2022-07-02 02:44:43 -04:00
startup = [
2022-11-25 22:17:56 -05:00
# Up the mouse dpi
{ command = "solaar config 1 dpi 4000"; }
2022-07-02 02:44:43 -04:00
];
};
2023-02-21 16:20:25 -05:00
2023-04-19 18:32:01 -04:00
# 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 = {
Description = "glpaper (DP-1)";
After = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
/etc/profiles/per-user/nathan/bin/glpaper DP-1 ${
../../custom-files/sway/selen.frag
}
'';
Restart = "always";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
2023-03-29 00:00:17 -04:00
# Gammastep
services.gammastep = {
enable = true;
latitude = 38.02972;
longitude = -84.49472;
tray = true;
2023-03-29 18:01:33 -04:00
temperature = {
day = 6300;
2023-05-06 21:41:43 -04:00
night = 4300;
2023-03-29 18:01:33 -04:00
};
2023-03-29 00:00:17 -04:00
settings = { general = { fade = 1; }; };
};
2023-02-21 16:20:25 -05:00
# System specific autoruns
systemd.user.services = {
# Start up solaar in tray icon mode
solaar = {
Unit = {
Description = "Solarr";
After = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.solaar}/bin/solaar -w hide
'';
};
2023-02-21 16:35:44 -05:00
Install = { WantedBy = [ "graphical-session.target" ]; };
2023-02-21 16:20:25 -05:00
};
# Startup noisetorch on our USB mic
noisetorch-startup = {
Unit = {
Description = "noisetorch";
After = [ "graphical-session.target" ];
};
Service = {
2023-02-21 16:35:44 -05:00
Type = "oneshot";
2023-03-02 00:09:47 -05:00
ExecStartPre = "/run/current-system/sw/bin/sleep 5";
2023-02-21 16:20:25 -05:00
ExecStart = ''
/run/wrappers/bin/noisetorch -i alsa_input.usb-18072020_JLAB_TALK_GO_MICROPHONE-00.analog-stereo
'';
};
2023-02-21 16:35:44 -05:00
Install = { WantedBy = [ "graphical-session.target" ]; };
2023-02-21 16:20:25 -05:00
};
};
2022-07-02 02:44:43 -04:00
# Mako output configuration
programs.mako = {
# Lock mako notifs to main display
2023-03-02 00:05:11 -05:00
output = "DP-1";
2022-07-02 02:44:43 -04:00
};
}