mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
refactor: move screenshot to scripts
This commit is contained in:
parent
d45f6a9359
commit
1a899dc894
4 changed files with 21 additions and 25 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
makeScript = {
|
||||
|
|
@ -13,13 +14,23 @@
|
|||
text = builtins.readFile path;
|
||||
};
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
(makeScript {
|
||||
path = ./reboot-windows.bash;
|
||||
environment.systemPackages =
|
||||
[
|
||||
(makeScript {
|
||||
path = ./reboot-windows.bash;
|
||||
runtimeInputs = with pkgs; [
|
||||
jq
|
||||
systemd # for bootctl and systemctl
|
||||
];
|
||||
})
|
||||
]
|
||||
++ lib.optional config.fireproof.desktop.enable (makeScript {
|
||||
path = ./screenshot.bash;
|
||||
runtimeInputs = with pkgs; [
|
||||
jq
|
||||
systemd # for bootctl and systemctl
|
||||
slurp
|
||||
grim
|
||||
satty
|
||||
wl-clipboard
|
||||
];
|
||||
})
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue