Move sway-scripts into private

This commit is contained in:
Artemis Tosini 2021-11-20 04:29:41 +00:00
parent f2cba2afef
commit b1f0751105
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
3 changed files with 4 additions and 33 deletions

View file

@ -1,27 +0,0 @@
{ stdenv
, lib
, writeScriptBin
, runtimeShell
, yubikey-manager
, wofi
, wl-clipboard
, gawk
, gnugrep
, coreutils
}:
writeScriptBin "ykclip-wofi" ''
#! ${runtimeShell}
PATH=${lib.makeBinPath [ yubikey-manager wofi wl-clipboard gawk gnugrep coreutils ]}
set -euo pipefail
ykman list --serials | grep $1 > /dev/null
name=$(ykman -d $1 oath accounts list | wofi -k /dev/null -i -d)
line=$(ykman -d $1 oath accounts code "$name" | head -n 1)
if test -n "$line"
then
echo $line | awk '{print $NF}' | wl-copy
fi
''

View file

@ -38,11 +38,11 @@
},
"private": {
"locked": {
"lastModified": 1637378493,
"narHash": "sha256-NLiiT8fGx4SY497Tcgq0R0l2RkBaqQ7pJgZRwjwxixc=",
"lastModified": 1637382407,
"narHash": "sha256-Bw/R8th8bbJ7w6qN6+kxv7pfN3oa+VuzuJdEWgFmDuA=",
"ref": "unified",
"rev": "07ecdbf1995278df6aa67b1055fd9f94f3971010",
"revCount": 27,
"rev": "992cc2ee5ba553bf3471e69fb59d8fe1fef4e87b",
"revCount": 28,
"type": "git",
"url": "ssh://git@github.com/artemist/nixos-config-private"
},

View file

@ -1,6 +1,5 @@
{ pkgs, lib, config, ... }:
let
sway-scripts = pkgs.callPackage ../externals/packages/sway-scripts { };
cfg = config.wayland.windowManager.sway;
mod = cfg.config.modifier;
extraWorkspaces = {
@ -31,7 +30,6 @@ let
extraWorkspaces;
in
{
home.packages = [ sway-scripts ];
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;