System/machines/levitation/home.nix

105 lines
2.5 KiB
Nix
Raw Normal View History

2022-07-02 02:44:43 -04:00
{ config, lib, pkgs, ... }:
{
nathan = {
services = { email = { enable = true; }; };
config = { isDesktop = true; };
2022-07-17 23:24:27 -04:00
programs = {
util = { wine = 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-03-29 00:00:17 -04:00
home.packages = with pkgs; [ gammastep ];
2022-07-02 02:44:43 -04:00
# Sway outputs
wayland.windowManager.sway.config = {
output = {
2023-01-14 03:09:27 -05:00
# DP-1 = {
# pos = "0 140";
# scale = "1";
# subpixel = "rgb";
# max_render_time = "6";
# };
2023-03-02 00:05:11 -05:00
DP-3 = { disable = ""; };
DP-1 = {
2022-07-02 02:44:43 -04:00
pos = "2560 0";
scale = "1.25";
subpixel = "rgb";
2022-12-10 20:05:07 -05:00
max_render_time = "6";
2022-07-02 02:44:43 -04:00
};
HDMI-A-1 = {
pos = "5632 140";
scale = "1";
subpixel = "rgb";
2022-12-10 20:05:07 -05:00
max_render_time = "6";
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 = [
# GLPaper
2023-01-14 03:09:27 -05:00
# { command = "glpaper DP-1 ${../../custom-files/sway/selen.frag} --fork"; }
2023-03-02 00:05:11 -05:00
{ command = "glpaper DP-1 ${../../custom-files/sway/selen.frag} --fork"; }
{
command =
"glpaper HDMI-A-1 ${../../custom-files/sway/selen.frag} --fork";
}
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-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;
night = 3300;
};
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
};
}