update

Ryan Gibb c6bb86a7 adc7a935

Changed files
+70 -6
home
modules
+44 -1
flake.lock
···
"nixpkgs-flaresolverr": "nixpkgs-flaresolverr",
"nixpkgs-sonarr": "nixpkgs-sonarr",
"nixpkgs-unstable": "nixpkgs-unstable",
-
"nur": "nur"
}
},
"scss-reset": {
···
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
···
"nixpkgs-flaresolverr": "nixpkgs-flaresolverr",
"nixpkgs-sonarr": "nixpkgs-sonarr",
"nixpkgs-unstable": "nixpkgs-unstable",
+
"nur": "nur",
+
"timewall": "timewall"
+
}
+
},
+
"rust-overlay": {
+
"inputs": {
+
"nixpkgs": [
+
"timewall",
+
"nixpkgs"
+
]
+
},
+
"locked": {
+
"lastModified": 1734230139,
+
"narHash": "sha256-zsp0Mz8VgyIAnU8UhP/YT1g+zlsl+NIJTBMAbY+RifQ=",
+
"owner": "oxalica",
+
"repo": "rust-overlay",
+
"rev": "150fbc8aa2bc501041810bbc1dbfe73694a861be",
+
"type": "github"
+
},
+
"original": {
+
"owner": "oxalica",
+
"repo": "rust-overlay",
+
"type": "github"
}
},
"scss-reset": {
···
"original": {
"owner": "nix-systems",
"repo": "default",
+
"type": "github"
+
}
+
},
+
"timewall": {
+
"inputs": {
+
"nixpkgs": [
+
"nixpkgs"
+
],
+
"rust-overlay": "rust-overlay"
+
},
+
"locked": {
+
"lastModified": 1737041980,
+
"narHash": "sha256-LE8gW4lGB4atru+zcpYGSQCRe/VUzsS7Hd/5Ru5ZR8Q=",
+
"owner": "RyanGibb",
+
"repo": "timewall",
+
"rev": "62ad75972a73fa6179e6082d6b83f2585844c77c",
+
"type": "github"
+
},
+
"original": {
+
"owner": "RyanGibb",
+
"repo": "timewall",
"type": "github"
}
},
+3
flake.nix
···
hyperbib-eeg.url = "github:RyanGibb/hyperbib?ref=nixify";
nix-rpi5.url = "gitlab:vriska/nix-rpi5?ref=main";
nur.url = "github:nix-community/NUR/e9e77b7985ef9bdeca12a38523c63d47555cc89b";
# deduplicate flake inputs
eilean.inputs.nixpkgs.follows = "nixpkgs";
···
hyperbib-eeg.inputs.nixpkgs.follows = "nixpkgs";
nix-rpi5.inputs.nixpkgs.follows = "nixpkgs";
nur.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
···
inherit system;
config = nixpkgsConfig;
}).sonarr;
})
inputs.nur.overlays.default
];
···
hyperbib-eeg.url = "github:RyanGibb/hyperbib?ref=nixify";
nix-rpi5.url = "gitlab:vriska/nix-rpi5?ref=main";
nur.url = "github:nix-community/NUR/e9e77b7985ef9bdeca12a38523c63d47555cc89b";
+
timewall.url = "github:RyanGibb/timewall";
# deduplicate flake inputs
eilean.inputs.nixpkgs.follows = "nixpkgs";
···
hyperbib-eeg.inputs.nixpkgs.follows = "nixpkgs";
nix-rpi5.inputs.nixpkgs.follows = "nixpkgs";
nur.inputs.nixpkgs.follows = "nixpkgs";
+
timewall.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
···
inherit system;
config = nixpkgsConfig;
}).sonarr;
+
timewall = final.overlay-unstable.timewall;
})
inputs.nur.overlays.default
];
+17 -1
home/gui/default.nix
···
config,
lib,
...
-
}:
let
cfg = config.custom.gui;
···
imports = [
./i3.nix
./sway.nix
];
options.custom.gui.enable = lib.mkEnableOption "gui";
···
};
in
[ status ];
sessionVariables = {
# evince workaround
GTK_THEME = "Gruvbox-Dark";
···
desktop = "$HOME/";
templates = "$HOME/";
publicShare = "$HOME/";
};
};
};
···
config,
lib,
...
+
}@inputs:
let
cfg = config.custom.gui;
···
imports = [
./i3.nix
./sway.nix
+
inputs.timewall.homeManagerModules.default
];
options.custom.gui.enable = lib.mkEnableOption "gui";
···
};
in
[ status ];
+
sessionVariables = {
# evince workaround
GTK_THEME = "Gruvbox-Dark";
···
desktop = "$HOME/";
templates = "$HOME/";
publicShare = "$HOME/";
+
};
+
};
+
+
services.timewall = {
+
config = {
+
location = {
+
lat = 52;
+
lon = 0;
+
};
+
setter.command = [
+
"sh"
+
"-c"
+
"ln -fs %f ~/.cache/timewall/last_image && swaymsg output \\* bg %f fill #282828"
+
];
};
};
};
+1 -1
home/gui/sway.nix
···
'';
locked = "--locked";
polkit_gnome = "${pkgs.polkit_gnome}";
-
locker = "swaylock -f -i $WALLPAPER";
enable_output = "swaymsg output $laptop_output enable";
disable_output = "swaymsg output $laptop_output disable";
drun = "wofi -i --show drun --allow-images -a";
···
'';
locked = "--locked";
polkit_gnome = "${pkgs.polkit_gnome}";
+
locker = "swaylock -f -i ~/.cache/timewall/last_image";
enable_output = "swaymsg output $laptop_output enable";
disable_output = "swaymsg output $laptop_output disable";
drun = "wofi -i --show drun --allow-images -a";
+3 -1
home/gui/wm/sway/exec
···
exec_always "pkill kanshi; kanshi"
# https://elis.nu/blog/2021/02/detailed-setup-of-screen-sharing-in-sway/#orga91b409
-
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
exec dbus-update-activation-environment WAYLAND_DISPLAY
# https://github.com/yory8/clipman/issues/59
exec wl-paste -t text --watch clipman store -P --max-items=100
exec systemctl --user start gammastep
···
exec_always "pkill kanshi; kanshi"
# https://elis.nu/blog/2021/02/detailed-setup-of-screen-sharing-in-sway/#orga91b409
+
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP SWAYSOCK
exec dbus-update-activation-environment WAYLAND_DISPLAY
# https://github.com/yory8/clipman/issues/59
exec wl-paste -t text --watch clipman store -P --max-items=100
exec systemctl --user start gammastep
+
+
exec timewall set --daemon
-2
home/gui/wm/sway/output
···
-
-
output * bg $WALLPAPER fill #282828
···
+1
modules/gui/default.nix
···
pulseaudio
tridactyl-native
vlc
]
++ desktopEntries;
···
pulseaudio
tridactyl-native
vlc
+
timewall
]
++ desktopEntries;
+1
modules/home-manager.nix
···
useGlobalPkgs = true;
extraSpecialArgs = {
i3-workspace-history = inputs.i3-workspace-history;
};
users.${config.custom.username} = import ../home/default.nix;
};
···
useGlobalPkgs = true;
extraSpecialArgs = {
i3-workspace-history = inputs.i3-workspace-history;
+
timewall = inputs.timewall;
};
users.${config.custom.username} = import ../home/default.nix;
};