Sops based on ssh keys

This commit is contained in:
Aleksandr Lebedev 2025-07-30 18:51:51 +02:00
parent ec740591b3
commit 1b6310a742
16 changed files with 115 additions and 78 deletions

View file

@ -9,12 +9,10 @@
hwconfig,
username,
...
}:
let
lisgd-patched = pkgs.callPackage ./lisgd.nix {};
wvkbd-patched = pkgs.callPackage ./wvkbd.nix {};
in
{
}: let
lisgd-patched = pkgs.callPackage ./lisgd.nix {};
wvkbd-patched = pkgs.callPackage ./wvkbd.nix {};
in {
programs.fuzzel = {
enable = true;
settings.main.terminal = "kitty";
@ -62,7 +60,11 @@ in
command = [
"${lib.getExe pkgs.brightnessctl}"
"set"
(if hwconfig.hostname == "kylekrein-framework12" then "20%" else "25%")
(
if hwconfig.hostname == "kylekrein-framework12"
then "20%"
else "25%"
)
];
};
touchscreen-gestures = lib.mkIf (hwconfig.hasTouchscreen) {
@ -70,16 +72,16 @@ in
"while true; do ${lisgd-patched}/bin/lisgd; done" #https://git.sr.ht/~mil/lisgd
];
};
touchscreen-keyboard = lib.mkIf(hwconfig.hasTouchscreen){
command = [
"${wvkbd-patched}/bin/wvkbd"
"--hidden"
];
};
touchscreen-keyboard = lib.mkIf (hwconfig.hasTouchscreen) {
command = [
"${wvkbd-patched}/bin/wvkbd"
"--hidden"
];
};
in [
set-low-brightness
touchscreen-gestures
touchscreen-keyboard
touchscreen-keyboard
{
command = [
"${lib.getExe pkgs.networkmanagerapplet}"

View file

@ -1,15 +1,18 @@
{wvkbd, fetchFromGitHub, ...}:
let
{
wvkbd,
fetchFromGitHub,
...
}: let
niri-patch = ./wvkbd-niri.patch; #https://github.com/jjsullivan5196/wvkbd/issues/70
in
wvkbd.overrideAttrs (final: prev: {
version = "0.17";
src = fetchFromGitHub {
owner = "Paulicat";
repo = "wvkbd";
rev = "ac02545ab6f6ccfa5b6f132414021ba57ea73096";
hash = "sha256-py/IqNEEaTOx/9W935Vc47WoNFz99+bNaYD0sL//JmY=";
};
installFlags = prev.installFlags ++ ["LAYOUT=vistath"];
patches = prev.patches or [] ++ [ niri-patch ];
})
wvkbd.overrideAttrs (final: prev: {
version = "0.17";
src = fetchFromGitHub {
owner = "Paulicat";
repo = "wvkbd";
rev = "ac02545ab6f6ccfa5b6f132414021ba57ea73096";
hash = "sha256-py/IqNEEaTOx/9W935Vc47WoNFz99+bNaYD0sL//JmY=";
};
installFlags = prev.installFlags ++ ["LAYOUT=vistath"];
patches = prev.patches or [] ++ [niri-patch];
})