Compare commits
No commits in common. "6be832b012a92ee94f5612ead326207dfef40dc9" and "7499a21cbd89665282c73a3a5f3b92cc5a7a4658" have entirely different histories.
6be832b012
...
7499a21cbd
4 changed files with 1 additions and 46 deletions
|
|
@ -3,7 +3,6 @@ let
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../sway/sway.nix
|
../sway/sway.nix
|
||||||
../sway/launcher-cleanup.nix
|
|
||||||
./social.nix
|
./social.nix
|
||||||
./signal-work.nix
|
./signal-work.nix
|
||||||
./thunderbird.nix
|
./thunderbird.nix
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ local config = {
|
||||||
on_config_done = nil,
|
on_config_done = nil,
|
||||||
-- size can be a number or function which is passed the current terminal
|
-- size can be a number or function which is passed the current terminal
|
||||||
size = 60,
|
size = 60,
|
||||||
open_mapping = [[<M-t>]],
|
open_mapping = [[<c-t>]],
|
||||||
hide_numbers = true, -- hide the number column in toggleterm buffers
|
hide_numbers = true, -- hide the number column in toggleterm buffers
|
||||||
shade_filetypes = {},
|
shade_filetypes = {},
|
||||||
shade_terminals = true,
|
shade_terminals = true,
|
||||||
|
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
let
|
|
||||||
cleanup-launcher = pkgs.writeShellScriptBin "cleanup-sway-launcher" ''
|
|
||||||
HIST_FILE="''${XDG_CACHE_HOME:-$HOME/.cache}/.sway-launcher-desktop-wrapped-history.txt"
|
|
||||||
|
|
||||||
# Delete the history file to clear duplicates
|
|
||||||
if [[ -f "$HIST_FILE" ]]; then
|
|
||||||
rm "$HIST_FILE"
|
|
||||||
echo "Cleared sway-launcher history at $HIST_FILE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Run purge to clean up any broken entries
|
|
||||||
${pkgs.sway-launcher-desktop}/bin/sway-launcher-desktop purge 2>/dev/null || true
|
|
||||||
|
|
||||||
echo "Sway launcher cleanup completed"
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
environment.systemPackages = [ cleanup-launcher ];
|
|
||||||
|
|
||||||
systemd.user.timers = {
|
|
||||||
cleanup-sway-launcher = {
|
|
||||||
description = "Clean up sway-launcher-desktop cache";
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "Sun 03:00";
|
|
||||||
Persistent = true;
|
|
||||||
};
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.services = {
|
|
||||||
cleanup-sway-launcher = {
|
|
||||||
description = "Clean up sway-launcher-desktop cache and remove broken entries";
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStart = "${cleanup-launcher}/bin/cleanup-sway-launcher";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -665,10 +665,6 @@ in
|
||||||
user = "root";
|
user = "root";
|
||||||
identityFile = "~/.ssh/epicenter.id_rsa";
|
identityFile = "~/.ssh/epicenter.id_rsa";
|
||||||
};
|
};
|
||||||
"*.whoidentifies.me" = {
|
|
||||||
user = "root";
|
|
||||||
identityFile = "~/.ssh/epicenter_id_ed25519";
|
|
||||||
};
|
|
||||||
"*.akvorrat.at" = {
|
"*.akvorrat.at" = {
|
||||||
user = "dominik";
|
user = "dominik";
|
||||||
setEnv = {
|
setEnv = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue