mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
Compare commits
3 commits
c7a09c5a23
...
041fbcfa1c
| Author | SHA1 | Date | |
|---|---|---|---|
| 041fbcfa1c | |||
| c2e068dc48 | |||
| ae8a563863 |
4 changed files with 9 additions and 64 deletions
|
|
@ -113,7 +113,6 @@ in
|
|||
../nixosModules/common/network.nix
|
||||
../nixosModules/common/sudo-conf.nix
|
||||
../nixosModules/common/system-nixconf.nix
|
||||
../nixosModules/common/xscreensaver.nix
|
||||
|
||||
# QUIRK:
|
||||
# Had issue when building the installer as it fails to bootstrap itself
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
# To enable roaming https://wiki.archlinux.org/title/Wpa_supplicant#Roaming
|
||||
wireless = {
|
||||
enable = true;
|
||||
userControlled.enable = true;
|
||||
userControlled = true;
|
||||
secretsFile = config.age.secrets.wpa_password.path;
|
||||
scanOnLowSignal = false;
|
||||
networks =
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
#
|
||||
# This module provides a service react to xscreensaver events
|
||||
#
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.services.xscreensaver;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
services.xscreensaver.hooks = lib.mkOption {
|
||||
type = with lib.types; attrsOf str;
|
||||
description = "An attrset of events mapped a block of shell command to be run";
|
||||
default = { };
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.user.services = {
|
||||
"xscreensaver-hooks" = {
|
||||
description = "Run commands on xscreensaver events";
|
||||
after = [
|
||||
"graphical-session.target"
|
||||
"xscreensaver.service"
|
||||
];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
script =
|
||||
let
|
||||
handlers = lib.concatMapAttrsStringSep "\n" (event: action: ''
|
||||
"${event}")
|
||||
( ${action}
|
||||
)
|
||||
;;
|
||||
'') cfg.hooks;
|
||||
in
|
||||
''
|
||||
xscreensaver-command -watch | while read event rest; do
|
||||
echo "The handler script got \"$event\""
|
||||
case $event in
|
||||
${handlers}
|
||||
esac
|
||||
done
|
||||
'';
|
||||
path = [
|
||||
cfg.package # contains xscreensaver-command
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -125,11 +125,11 @@
|
|||
"owner": "nix-community",
|
||||
"repo": "home-manager"
|
||||
},
|
||||
"branch": "release-25.11",
|
||||
"branch": "master",
|
||||
"submodules": false,
|
||||
"revision": "6bd04da47cfb48dfd15eabf08364b78ad894f5b2",
|
||||
"url": "https://github.com/nix-community/home-manager/archive/6bd04da47cfb48dfd15eabf08364b78ad894f5b2.tar.gz",
|
||||
"hash": "1wvysqiybcyf2hzvvpja2522fqhk45554j0b07h3s7zhzc2056ia"
|
||||
"revision": "4e8b7bef66c60735982369f3151b93e62fe37da7",
|
||||
"url": "https://github.com/nix-community/home-manager/archive/4e8b7bef66c60735982369f3151b93e62fe37da7.tar.gz",
|
||||
"hash": "0jva394l5s9vdrwfffvb8f4181i8832g6hffasn8nc8aqyn1wq5f"
|
||||
},
|
||||
"infuse": {
|
||||
"type": "GitRelease",
|
||||
|
|
@ -195,11 +195,11 @@
|
|||
"owner": "nixos",
|
||||
"repo": "nixpkgs"
|
||||
},
|
||||
"branch": "nixos-25.11-small",
|
||||
"branch": "nixos-unstable",
|
||||
"submodules": false,
|
||||
"revision": "a35a20f6d3d51b6b42b68a6879701f7d87381896",
|
||||
"url": "https://github.com/nixos/nixpkgs/archive/a35a20f6d3d51b6b42b68a6879701f7d87381896.tar.gz",
|
||||
"hash": "00781d4nhmqzvxph2lpsj3kika3v8y0nigfadr6y8lvzxrcppkfj"
|
||||
"revision": "9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5",
|
||||
"url": "https://github.com/nixos/nixpkgs/archive/9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5.tar.gz",
|
||||
"hash": "1h3g9iyfj0xwz7i4ywcxjpp3p9xk7ahp563m0h1i25697sc2lrji"
|
||||
},
|
||||
"nur": {
|
||||
"type": "Git",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue