+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
945d6d7
main
1{ pkgs , lib , config , ...} @inputs :{ 2wayland . windowManager . sway = { enable = true ; 3# TODO: change exec line to "systemd-cat -p sway ${pkgs.sway}/bin/sway" 4# TODO: wrapper features? 5systemd = { 6xdgAutostart = true ; 7variables = [ "--all" ]; # TODO: check if importing PATH for xdg-desktop-portal is working 8}; 9extraSessionCommands = '' 10export NIXOS_OZONE_WL=1 11'' ; 12extraConfigEarly = "include ~/.config/sway/common_config" ; 13config = null ; 14# package = pkgs.swayfx; 15}; 16 17home . packages = with pkgs ; [ 18wev wl-clipboard grim slurp hyprpicker wlprop 19# TODO: wl-screenrec config (make sure hardware encode is working) 20# TODO: try satty or watershot 21swaynotificationcenter # TODO: try dunst/mako/fnott 22qt5 . qtwayland qt6 . qtwayland 23wluma 24wttrbar 25wdisplays 26wayfarer kooha 27aw-watcher-window-wayland 28# TODO: oneko wayland port and/or https://github.com/Ibrahim2750mi/linux-goose 29# see https://catgirl.ai/log/sway-spy and https://codeberg.org/ext0l/openbonzi 30 31# TODO waytrogen for wallpapers? see if multi-monitor+video support is better than wpaperd 32]; 33 34programs = { 35waybar = { 36enable = true ; systemd . enable = true ; 37style = ''@import "common.css";'' ; 38}; 39# swaylock = { enable = true; 40# package = if inputs ? osConfig then pkgs.swaylock else pkgs.hello; 41# settings = { 42# daemonize = true; scaling = "fill"; image = "~/images/lockscreen"; 43# ignore-empty-password = true; show-failed-attempts = true; 44# inside-color = lib.mkForce "1e1e2eaa"; 45# }; 46# }; 47}; 48 49services = { 50# TODO: make reverse scrolling vary based on touchpad, 51# check mute mouse binding and volume keys 52pasystray = { enable = true ; 53extraOptions = [ "-grSi" "1" "-N" "none" "-N" "new" "-m" "100" ]; 54}; 55swayidle = { enable = true ; 56events = { 57before-sleep = "playerctl pause && swaylock" ; 58lock = "swaylock" ; 59}; 60timeouts = let screen = state :"swaymsg 'output * dpms ${ state } '" ; in [ 61{ timeout = 110 ; command = "swaylock" ; } 62{ timeout = 120 ; command = screen "off" ; resumeCommand = screen "on" ; } 63]; 64}; 65wpaperd = { enable = true ; 66settings . default = { 67path = config . xdg . userDirs . pictures + "/wallpapers" ; 68apply-shadow = true ; 69duration = "30m" ; 70}; 71}; 72swaync . enable = true ; # TODO: ctp 73swayosd . enable = true ; # TODO: ctp 74activitywatch . watchers . aw-watcher-window-wayland = { 75package = pkgs . aw-watcher-window-wayland ; 76settings = { poll_time = 5 ; exclude_title = true ; }; 77}; 78}; 79 80systemd . user . timers = { 81change-lockscreen = { 82Unit . Description = "Swap my lockscreen background" ; 83Timer = { OnCalendar = "daily" ; Persistent = true ; }; 84Install . WantedBy = [ "timers.target" ]; 85}; 86}; 87}