gpg
This commit is contained in:
parent
ae0689bd24
commit
f32d23295c
5 changed files with 40 additions and 3 deletions
|
@ -15,11 +15,11 @@ each host should have these files:
|
||||||
- `hardware.nix`, hardware configuration.
|
- `hardware.nix`, hardware configuration.
|
||||||
|
|
||||||
## todo
|
## todo
|
||||||
|
|
||||||
- move common config such as bootloader and networking settings to [`default.nix`](./default.nix) or some other common spot
|
- move common config such as bootloader and networking settings to [`default.nix`](./default.nix) or some other common spot
|
||||||
- multi architecture configuration ([nix-systems](https://github.com/nix-systems/nix-systems)?)
|
- multi architecture configuration ([nix-systems](https://github.com/nix-systems/nix-systems)?)
|
||||||
- bitwarden
|
- bitwarden
|
||||||
- divide steam and gamemode?
|
- divide steam and gamemode?
|
||||||
- cursor size theme option
|
- cursor size theme option
|
||||||
- sddm x11 support, too. or maybe just remove x11
|
- sddm x11 support, too. or maybe just remove x11
|
||||||
- gnome keyring / gcr for saving passwords
|
- gnome-keyring basic libsecret support works, add ssh too plz :heart:
|
||||||
|
- git gpg signing
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
hypridle.enable = true;
|
hypridle.enable = true;
|
||||||
hyprpaper.enable = true;
|
hyprpaper.enable = true;
|
||||||
|
|
||||||
|
gnome-keyring.enable = true;
|
||||||
polkit-gnome.enable = true;
|
polkit-gnome.enable = true;
|
||||||
dunst.enable = true;
|
dunst.enable = true;
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
|
@ -75,6 +76,7 @@
|
||||||
distractions.steam.enable = true;
|
distractions.steam.enable = true;
|
||||||
# tools
|
# tools
|
||||||
tools.mpv.enable = true;
|
tools.mpv.enable = true;
|
||||||
|
tools.gpg.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
14
modules/desktop/gnome-keyring.nix
Normal file
14
modules/desktop/gnome-keyring.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.gnome-keyring;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.gnome-keyring = {
|
||||||
|
enable = mkEnableOption "Enable gnome-keyring, a password store";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -157,13 +157,15 @@ in {
|
||||||
"float, initialTitle:^Select a file to open$"
|
"float, initialTitle:^Select a file to open$"
|
||||||
"center, initialTitle:^Select a file to open$"
|
"center, initialTitle:^Select a file to open$"
|
||||||
"size 1100 650, initialTitle:^Select a file to open$"
|
"size 1100 650, initialTitle:^Select a file to open$"
|
||||||
# unsure why this is required, scaling?
|
# https://github.com/hyprwm/Hyprland/issues/6154
|
||||||
|
"center, class:^gcr-prompter"
|
||||||
"center, class:^pinentry-"
|
"center, class:^pinentry-"
|
||||||
"center, class:^polkit-"
|
"center, class:^polkit-"
|
||||||
|
|
||||||
"float, class:\.exe$"
|
"float, class:\.exe$"
|
||||||
|
|
||||||
# fix focus
|
# fix focus
|
||||||
|
"stayfocused, class:^gcr-prompter"
|
||||||
"stayfocused, class:^pinentry-"
|
"stayfocused, class:^pinentry-"
|
||||||
"stayfocused, class:^polkit-"
|
"stayfocused, class:^polkit-"
|
||||||
"stayfocused, class:^rofi-"
|
"stayfocused, class:^rofi-"
|
||||||
|
|
19
modules/software/tools/gpg.nix
Normal file
19
modules/software/tools/gpg.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.software.tools.gpg;
|
||||||
|
in {
|
||||||
|
options.modules.software.tools.gpg = {
|
||||||
|
enable = mkEnableOption "Enable gnupg, an open pgp software";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
hm.programs.gpg.enable = true;
|
||||||
|
hm.services.gpg-agent = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
pinentryPackage = pkgs.pinentry-gnome3;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue