+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanMore new Cortana prep945d6d7

main
2.8 KiB87 linesraw
1{ pkgs, lib, config, ... } @ inputs: {
2  wayland.windowManager.sway = { enable = true;
3   # TODO: change exec line to "systemd-cat -p sway ${pkgs.sway}/bin/sway"
4   # TODO: wrapper features?
5    systemd = {
6      xdgAutostart = true;
7      variables = [ "--all" ]; # TODO: check if importing PATH for xdg-desktop-portal is working
8    };
9    extraSessionCommands = ''
10      export NIXOS_OZONE_WL=1
11    '';
12    extraConfigEarly = "include ~/.config/sway/common_config";
13    config = null;
14    # package = pkgs.swayfx;
15  };
16
17  home.packages = with pkgs; [
18    wev wl-clipboard grim slurp hyprpicker wlprop
19    # TODO: wl-screenrec config (make sure hardware encode is working)
20    # TODO: try satty or watershot
21    swaynotificationcenter # TODO: try dunst/mako/fnott
22    qt5.qtwayland qt6.qtwayland
23    wluma
24    wttrbar
25    wdisplays
26    wayfarer kooha
27    aw-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
34  programs = {
35    waybar = {
36      enable = true; systemd.enable = true;
37      style = ''@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
49  services = {
50    # TODO: make reverse scrolling vary based on touchpad,
51    # check mute mouse binding and volume keys
52    pasystray = { enable = true;
53      extraOptions = ["-grSi" "1" "-N" "none" "-N" "new" "-m" "100"];
54    };
55    swayidle = { enable = true;
56      events = {
57        before-sleep = "playerctl pause && swaylock";
58        lock = "swaylock"; 
59      };
60      timeouts = let screen = state: "swaymsg 'output * dpms ${state}'"; in [
61        { timeout = 110; command = "swaylock"; }
62        { timeout = 120; command = screen "off"; resumeCommand = screen "on"; }
63      ];
64    };
65    wpaperd = { enable = true;
66      settings.default = {
67        path = config.xdg.userDirs.pictures + "/wallpapers";
68        apply-shadow = true;
69        duration = "30m";
70      };
71    };
72    swaync.enable = true; # TODO: ctp
73    swayosd.enable = true; # TODO: ctp
74    activitywatch.watchers.aw-watcher-window-wayland = {
75      package = pkgs.aw-watcher-window-wayland;
76      settings = { poll_time = 5; exclude_title = true; };
77    };
78  };
79
80  systemd.user.timers = {
81    change-lockscreen = {
82      Unit.Description = "Swap my lockscreen background";
83      Timer = { OnCalendar = "daily"; Persistent = true; };
84      Install.WantedBy = [ "timers.target" ];
85    };
86  };
87}