feat: add video group to allow usage of light

This commit is contained in:
Franek 2025-06-14 14:44:28 +02:00
parent 1cb2f9b89f
commit 6a552e8c24
2 changed files with 80 additions and 25 deletions

View file

@ -25,6 +25,7 @@ in
"networkmanager"
"plugdev"
"adbusers"
"video"
] ++ optional (config.modules ? nordvpn && config.modules.nordvpn.enable) [ "nordvpn" ];
ignoreShellProgramCheck = true;
shell = preferredShell pkgs;

View file

@ -1,32 +1,86 @@
{
webcopy = ''
set -l domain (string trim $argv)
wget --recursive \
--level 5 \
--no-clobber \
--page-requisites \
--adjust-extension \
--span-hosts \
--convert-links \
--domains $domain \
--no-parent \
$domain
'';
set -l domain (string trim $argv)
wget --recursive \
--level 5 \
--no-clobber \
--page-requisites \
--adjust-extension \
--span-hosts \
--convert-links \
--domains $domain \
--no-parent \
$domain
'';
venv = ''
if [ -d .venv ]; then
source .venv/bin/activate.fish
else
python -m venv .venv
source .venv/bin/activate.fish
fi
'';
if [ -d .venv ]; then
source .venv/bin/activate.fish
else
python -m venv .venv
source .venv/bin/activate.fish
fi
'';
thunderbird = ''
if pgrep -x birdtray > /dev/null
birdtray -s
else
birdtray &
end
'';
if pgrep -x birdtray > /dev/null
birdtray -s
else
birdtray &
end
'';
ls = ''
set opts
set paths
for arg in $argv
if string match -qr '^-' -- $arg
set opts $opts $arg
else
set paths $paths $arg
end
end
if test (count $paths) -eq 0
set paths .
end
for path in $paths
if test -d "$path"
command ls $opts $path
else if test -f "$path"
command cat $path
else
echo "ls: cannot access '$path': No such file or directory"
end
end
'';
cat = ''
set opts
set paths
for arg in $argv
if string match -qr '^-' -- $arg
set opts $opts $arg
else
set paths $paths $arg
end
end
if test (count $paths) -eq 0
set paths .
end
for path in $paths
if test -d "$path"
command ls $opts $path
else if test -f "$path"
command cat $path
else
echo "cat: $path: No such file or directory"
end
end
'';
}