timewall geoclue

Ryan Gibb 5d62dadf c87109e4

Changed files
+58 -8
home
modules
+45 -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": 1737303286,
+
"narHash": "sha256-22Y6qwJ/JVX61J0u492nNBZVNOt+d3b8Q8Iw/fFSgio=",
+
"owner": "bcyran",
+
"repo": "timewall",
+
"rev": "fb4845286b034af498971b3e76257f97fbffc73d",
+
"type": "github"
+
},
+
"original": {
+
"owner": "bcyran",
+
"ref": "geoclue",
+
"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:bcyran/timewall/geoclue";
# 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 = inputs.timewall.packages.${system}.default;
})
inputs.nur.overlays.default
];
+1 -5
home/gui/timewall.toml
···
-
[location]
-
lat = 52
-
lon = 0
-
[setter]
-
command = [ "sh", "-c", "ln -fs %f ~/.cache/timewall/last_image && (setsid swaybg -i %f -c 282828 -m fill >/dev/null 2>&1 &) && (sleep 1; (grep -v $(pgrep -nf ^swaybg) <(pgrep -f ^swaybg) | tee ~/x | xargs kill)) && exit 0" ]
···
[setter]
+
command = [ "sh", "-c", "ln -fs %f ~/.cache/timewall/last_image && (setsid swaybg -i %f -c 282828 -m fill >/dev/null 2>&1 &) && (sleep 1; (grep -v $(pgrep -nf ^swaybg) <(pgrep -f ^swaybg) | tee ~/x | xargs -r kill)) && exit 0" ]
+1 -1
modules/gui/default.nix
···
pulseaudio
tridactyl-native
vlc
-
overlay-unstable.timewall
swaybg
]
++ desktopEntries;
···
pulseaudio
tridactyl-native
vlc
+
timewall
swaybg
]
++ desktopEntries;
+4
modules/gui/sway.nix
···
isAllowed = true;
isSystem = false;
};
};
}
···
isAllowed = true;
isSystem = false;
};
+
services.geoclue2.appConfig.timewall = {
+
isAllowed = true;
+
isSystem = false;
+
};
};
}
+4 -1
modules/workstation.nix
···
config = lib.mkIf cfg.workstation {
services.localtimed.enable = true;
-
services.geoclue2.enable = true;
};
}
···
config = lib.mkIf cfg.workstation {
services.localtimed.enable = true;
+
services.geoclue2 = {
+
enable = true;
+
geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
+
};
};
}