forked from colin/nix-files
sway: define the secret snippets more idiomatically
This commit is contained in:
parent
e6a989bc92
commit
0ed9394fff
|
@ -66,7 +66,6 @@ in
|
|||
{
|
||||
"jackett_apikey".owner = config.users.users.colin.name;
|
||||
"mx-sanebot-env".owner = config.users.users.colin.name;
|
||||
"snippets".owner = config.users.users.colin.name;
|
||||
"transmission_passwd".owner = config.users.users.colin.name;
|
||||
}
|
||||
];
|
||||
|
|
|
@ -70,6 +70,8 @@ in
|
|||
"sway-contrib.grimshot"
|
||||
"wdisplays" # like xrandr
|
||||
];
|
||||
|
||||
secrets.".config/sane-sway/snippets.txt" = ../../../../secrets/common/snippets.txt.bin;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -135,7 +137,7 @@ in
|
|||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
sane.user.fs.".config/sway/config".symlink.text =
|
||||
import ./sway-config.nix { inherit config pkgs; };
|
||||
import ./sway-config.nix { inherit pkgs; };
|
||||
|
||||
sane.user.fs.".config/waybar/config".symlink.target =
|
||||
let
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, config }:
|
||||
{ pkgs }:
|
||||
let
|
||||
fuzzel = "${pkgs.fuzzel}/bin/fuzzel";
|
||||
sed = "${pkgs.gnused}/bin/sed";
|
||||
|
@ -16,11 +16,10 @@ let
|
|||
# "bookmarking"/snippets inspired by Luke Smith:
|
||||
# - <https://www.youtube.com/watch?v=d_11QaTlf1I>
|
||||
snip-file = ../snippets.txt;
|
||||
# TODO: querying sops here breaks encapsulation
|
||||
list-snips = "cat ${snip-file} ${config.sops.secrets.snippets.path}";
|
||||
list-snips = "cat ${snip-file} ~/.config/sane-sway/snippets.txt";
|
||||
strip-comments = "${sed} 's/ #.*$//'";
|
||||
snip-cmd = "${wtype} $(${list-snips} | ${fuzzel} -d -i -w 60 | ${strip-comments})";
|
||||
# TODO: next splatmoji release should allow `-s none` to disable skin tones
|
||||
# TODO: splatmoji release > 1.2.0 should allow `-s none` to disable skin tones
|
||||
emoji-cmd = "${pkgs.splatmoji}/bin/splatmoji -s medium-light type";
|
||||
|
||||
# mod = "Mod1"; # Alt
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
- router_passwd: CenturyLink password from old home
|
||||
- no longer used
|
||||
- snippets.bin: sensitive snippets that go into e.g. sway menu
|
||||
- snippets.txt.bin: sensitive snippets that go into e.g. sway menu
|
||||
|
|
Loading…
Reference in New Issue
Block a user