Move sway-scripts into private
This commit is contained in:
parent
f2cba2afef
commit
b1f0751105
27
externals/packages/sway-scripts/default.nix
vendored
27
externals/packages/sway-scripts/default.nix
vendored
|
@ -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
|
|
||||||
''
|
|
|
@ -38,11 +38,11 @@
|
||||||
},
|
},
|
||||||
"private": {
|
"private": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1637378493,
|
"lastModified": 1637382407,
|
||||||
"narHash": "sha256-NLiiT8fGx4SY497Tcgq0R0l2RkBaqQ7pJgZRwjwxixc=",
|
"narHash": "sha256-Bw/R8th8bbJ7w6qN6+kxv7pfN3oa+VuzuJdEWgFmDuA=",
|
||||||
"ref": "unified",
|
"ref": "unified",
|
||||||
"rev": "07ecdbf1995278df6aa67b1055fd9f94f3971010",
|
"rev": "992cc2ee5ba553bf3471e69fb59d8fe1fef4e87b",
|
||||||
"revCount": 27,
|
"revCount": 28,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com/artemist/nixos-config-private"
|
"url": "ssh://git@github.com/artemist/nixos-config-private"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
sway-scripts = pkgs.callPackage ../externals/packages/sway-scripts { };
|
|
||||||
cfg = config.wayland.windowManager.sway;
|
cfg = config.wayland.windowManager.sway;
|
||||||
mod = cfg.config.modifier;
|
mod = cfg.config.modifier;
|
||||||
extraWorkspaces = {
|
extraWorkspaces = {
|
||||||
|
@ -31,7 +30,6 @@ let
|
||||||
extraWorkspaces;
|
extraWorkspaces;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = [ sway-scripts ];
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
|
|
Loading…
Reference in a new issue