2023-04-30 23:06:47 -04:00
|
|
|
{ config, lib, pkgs, inputs, ... }: {
|
2022-07-02 02:44:43 -04:00
|
|
|
nathan = {
|
2022-10-13 22:13:43 -04:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
2022-10-13 22:13:43 -04:00
|
|
|
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-05-14 18:56:23 -04:00
|
|
|
home.packages = with pkgs; [ gammastep fido2luks ];
|
2023-03-29 00:00:17 -04:00
|
|
|
|
2023-06-13 23:21:21 -04:00
|
|
|
# Hyprland outputs
|
|
|
|
wayland.windowManager.hyprland.extraConfig = ''
|
2023-07-01 17:23:18 -04:00
|
|
|
# monitor=DP-3,preferred,auto,1.4,bitdepth,10
|
2023-06-16 20:16:56 -04:00
|
|
|
# disable 10 bit output for now as this breaks screenshots
|
2023-06-29 11:29:47 -04:00
|
|
|
misc {
|
|
|
|
vrr = 1
|
2023-07-21 03:51:23 -04:00
|
|
|
no_direct_scanout = false
|
2023-06-29 11:29:47 -04:00
|
|
|
}
|
2023-07-01 17:23:18 -04:00
|
|
|
monitor=DP-3,preferred,auto,1.4
|
2023-06-13 23:21:21 -04:00
|
|
|
input {
|
2023-06-17 13:37:03 -04:00
|
|
|
sensitivity = -0.8
|
2023-06-13 23:21:21 -04:00
|
|
|
# accel_profile = flat
|
|
|
|
}
|
2023-06-21 01:40:31 -04:00
|
|
|
master {
|
|
|
|
mfact = 0.68
|
|
|
|
}
|
2023-06-13 23:21:21 -04:00
|
|
|
'';
|
2023-06-21 01:40:31 -04:00
|
|
|
################################################################################
|
2023-04-19 18:32:01 -04:00
|
|
|
|
2023-06-14 05:45:35 -04:00
|
|
|
# Background
|
|
|
|
xdg.configFile."hypr/hyprpaper.conf" = {
|
|
|
|
text = ''
|
|
|
|
preload = /home/nathan/Pictures/Backgrounds/IMG_20190518_195619.jpg
|
2023-07-01 17:23:18 -04:00
|
|
|
wallpaper = DP-3,/home/nathan/Pictures/Backgrounds/IMG_20190518_195619.jpg
|
2023-06-14 05:45:35 -04: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;
|
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
|
|
|
};
|
2023-07-22 18:36:00 -04:00
|
|
|
# Hyprpaper
|
|
|
|
# Run as service so we can easily restart it after kvm switching
|
|
|
|
hyprpaper = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Hyprpaper";
|
|
|
|
After = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
Type = "simple";
|
|
|
|
ExecStart = ''
|
|
|
|
${
|
|
|
|
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.hyprpaper
|
|
|
|
}/bin/hyprpaper
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
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-07-22 18:36:00 -04:00
|
|
|
# Install = { WantedBy = [ "graphical-session.target" ]; };
|
2023-02-21 16:20:25 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-04 03:02:29 -04:00
|
|
|
# Looking glass
|
|
|
|
xdg.configFile."looking-glass/client.ini" = {
|
|
|
|
text = ''
|
|
|
|
[input]
|
|
|
|
rawMouse=yes
|
|
|
|
[audio]
|
|
|
|
periodSize=512
|
|
|
|
bufferLatency=7
|
|
|
|
micDefault=allow
|
|
|
|
[egl]
|
|
|
|
scale = 1
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-07-02 02:44:43 -04:00
|
|
|
}
|