Compare commits

...

2 Commits

Author SHA1 Message Date
Nathan McCarty 46ee6edc62
Tmate -> Upterm 2023-07-23 21:06:20 -04:00
Nathan McCarty 783b9c071b
Tweak hyprland for kvm switch support
Turn off GDM, it pops back up on reconnecting the monitor for some
reason.
Move Hyprpaper to a service
2023-07-22 18:36:00 -04:00
3 changed files with 21 additions and 4 deletions

View File

@ -65,7 +65,7 @@ with lib; {
# Pandoc for documentation # Pandoc for documentation
pandoc pandoc
# Tmate for pair programming # Tmate for pair programming
tmate upterm
]; ];
}) })
(mkIf config.nathan.programs.util.json { (mkIf config.nathan.programs.util.json {

View File

@ -33,7 +33,6 @@
master { master {
mfact = 0.68 mfact = 0.68
} }
exec-once=hyprpaper
''; '';
################################################################################ ################################################################################
@ -74,6 +73,23 @@
}; };
Install = { WantedBy = [ "graphical-session.target" ]; }; Install = { WantedBy = [ "graphical-session.target" ]; };
}; };
# 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" ]; };
};
# Startup noisetorch on our USB mic # Startup noisetorch on our USB mic
noisetorch-startup = { noisetorch-startup = {
Unit = { Unit = {
@ -87,7 +103,7 @@
/run/wrappers/bin/noisetorch -i alsa_input.usb-18072020_JLAB_TALK_GO_MICROPHONE-00.analog-stereo /run/wrappers/bin/noisetorch -i alsa_input.usb-18072020_JLAB_TALK_GO_MICROPHONE-00.analog-stereo
''; '';
}; };
Install = { WantedBy = [ "graphical-session.target" ]; }; # Install = { WantedBy = [ "graphical-session.target" ]; };
}; };
}; };

View File

@ -22,7 +22,8 @@ in with lib; {
(mkIf nc.hyprland.enable { (mkIf nc.hyprland.enable {
# Turn on GDM for login # Turn on GDM for login
services.xserver = { services.xserver = {
enable = true; # enable = true;
enable = false;
autorun = true; autorun = true;
# Enable plasma for the applications # Enable plasma for the applications
desktopManager.plasma5.enable = true; desktopManager.plasma5.enable = true;