sxmo_suspend.sh: lift out of hosts/modules/gui/sxmo/hooks
i want to preserve this script for the future, while deleting the rest of my (unused) SXMO config
This commit is contained in:
@@ -95,12 +95,6 @@ let
|
|||||||
pkgs = [ "systemd" "xdg-user-dirs" ];
|
pkgs = [ "systemd" "xdg-user-dirs" ];
|
||||||
srcRoot = ./hooks;
|
srcRoot = ./hooks;
|
||||||
};
|
};
|
||||||
suspend = pkgs.static-nix-shell.mkPython3Bin {
|
|
||||||
pname = "sxmo_suspend.sh";
|
|
||||||
pkgs = [ "rtl8723cs-wowlan" "util-linux" ];
|
|
||||||
srcRoot = ./hooks;
|
|
||||||
extraMakeWrapperArgs = [ "--add-flags" "--verbose" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -174,7 +168,7 @@ in
|
|||||||
"sxmo_hook_postwake.sh" = "${hookPkgs.postwake}/bin/sxmo_hook_postwake.sh";
|
"sxmo_hook_postwake.sh" = "${hookPkgs.postwake}/bin/sxmo_hook_postwake.sh";
|
||||||
"sxmo_hook_rotate.sh" = "${hookPkgs.rotate}/bin/sxmo_hook_rotate.sh";
|
"sxmo_hook_rotate.sh" = "${hookPkgs.rotate}/bin/sxmo_hook_rotate.sh";
|
||||||
"sxmo_hook_start.sh" = "${hookPkgs.start}/bin/sxmo_hook_start.sh";
|
"sxmo_hook_start.sh" = "${hookPkgs.start}/bin/sxmo_hook_start.sh";
|
||||||
"sxmo_suspend.sh" = "${hookPkgs.suspend}/bin/sxmo_suspend.sh";
|
"sxmo_suspend.sh" = "${pkgs.sxmo-suspend}/bin/sxmo_suspend.sh";
|
||||||
};
|
};
|
||||||
description = ''
|
description = ''
|
||||||
extra hooks to add with higher priority than the builtins
|
extra hooks to add with higher priority than the builtins
|
||||||
|
10
pkgs/additional/sxmo-suspend/default.nix
Normal file
10
pkgs/additional/sxmo-suspend/default.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ static-nix-shell }:
|
||||||
|
static-nix-shell.mkPython3Bin {
|
||||||
|
# name is `sxmo_suspend.sh` because that's the binary this intends to replace
|
||||||
|
pname = "sxmo_suspend.sh";
|
||||||
|
srcRoot = ./.;
|
||||||
|
pkgs = [ "rtl8723cs-wowlan" "util-linux" ];
|
||||||
|
extraMakeWrapperArgs = [ "--add-flags" "--verbose" ];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@@ -1,5 +1,10 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i python3 -p "python3.withPackages (ps: [ ])" -p rtl8723cs-wowlan -p util-linux
|
#!nix-shell -i python3 -p "python3.withPackages (ps: [ ])" -p rtl8723cs-wowlan -p util-linux
|
||||||
|
"""
|
||||||
|
replacement `sxmo_suspend.sh` hook for the [SXMO](https://sxmo.org) desktop
|
||||||
|
which integrates with [ntfy](https://ntfy.sh) in order to stay in deep sleep
|
||||||
|
until actively woken by a notification.
|
||||||
|
"""
|
||||||
|
|
||||||
# yeah, this isn't technically a hook, but the hook infrastructure isn't actually
|
# yeah, this isn't technically a hook, but the hook infrastructure isn't actually
|
||||||
# restricted to stuff that starts with sxmo_hook_ ...
|
# restricted to stuff that starts with sxmo_hook_ ...
|
@@ -77,6 +77,7 @@ let
|
|||||||
swaylock-mobile = callPackage ./additional/swaylock-mobile { };
|
swaylock-mobile = callPackage ./additional/swaylock-mobile { };
|
||||||
swaylock-plugin = callPackage ./additional/swaylock-plugin { };
|
swaylock-plugin = callPackage ./additional/swaylock-plugin { };
|
||||||
sxmo_swaylock = callPackage ./additional/sxmo_swaylock { };
|
sxmo_swaylock = callPackage ./additional/sxmo_swaylock { };
|
||||||
|
sxmo-suspend = callPackage ./additional/sxmo-suspend { };
|
||||||
sxmo-utils = callPackage ./additional/sxmo-utils { };
|
sxmo-utils = callPackage ./additional/sxmo-utils { };
|
||||||
sysvol = callPackage ./additional/sysvol { };
|
sysvol = callPackage ./additional/sysvol { };
|
||||||
tow-boot-pinephone = callPackage ./additional/tow-boot-pinephone { };
|
tow-boot-pinephone = callPackage ./additional/tow-boot-pinephone { };
|
||||||
|
Reference in New Issue
Block a user