rofi & gpg
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
{
|
||||
# Include the results of the hardware scan.
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
imports =
|
||||
[ ./hardware-configuration.nix ./home/programs/dropbox/default.nix ];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader = {
|
||||
@@ -78,7 +79,6 @@
|
||||
alacritty
|
||||
dmenu
|
||||
|
||||
dropbox-cli
|
||||
gnome.nautilus
|
||||
lxqt.lxqt-policykit # provides a default authentication client for policykit
|
||||
];
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Neues
|
||||
|
||||
## Rofi
|
||||
|
||||
## Obsidian
|
||||
|
||||
- Install?
|
||||
@@ -105,11 +107,6 @@
|
||||
|
||||
- Maby nur PC
|
||||
|
||||
## Dropbox
|
||||
|
||||
- Installieren
|
||||
- aufräumen
|
||||
|
||||
## Rofi
|
||||
|
||||
- Installieren
|
||||
@@ -177,3 +174,7 @@
|
||||
## Nautilus
|
||||
|
||||
- Thumbnailer
|
||||
|
||||
## Dropbox
|
||||
|
||||
- aufräumen
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{
|
||||
imports = [
|
||||
./alacritty
|
||||
./neovim
|
||||
./git.nix
|
||||
./neovim
|
||||
./rofi
|
||||
./wallpaper.nix
|
||||
./xmonad
|
||||
./zathura.nix
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# dropbox - we don't need this in the environment. systemd unit pulls it in
|
||||
fq
|
||||
dropbox-cli
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ dropbox dropbox-cli ];
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 17500 ];
|
||||
|
||||
38
home/programs/rofi/default.nix
Normal file
38
home/programs/rofi/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [ oranchelo-icon-theme nerdfonts pass xclip ];
|
||||
|
||||
xsession.initExtra = "setxkbmap de"; # rofi pass needs this to be set
|
||||
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
theme = ./theme.rafi;
|
||||
extraConfig = {
|
||||
mode = "run,drun,window,ssh,network";
|
||||
icon-theme = "Oranchelo";
|
||||
show-icons = true;
|
||||
drun-display-format = "{icon} {name}";
|
||||
location = 0;
|
||||
disable-history = false;
|
||||
hide-scrollbar = true;
|
||||
display-drun = " Apps ";
|
||||
display-run = " Run ";
|
||||
display-window = " Window";
|
||||
display-ssh = " SSH";
|
||||
sidebar-mode = true;
|
||||
};
|
||||
pass = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
EDITOR='rofi-sensible-terminal -e vim'
|
||||
clibpoard_backend=xclip
|
||||
clip=clipboard
|
||||
password_length=32
|
||||
default_user="$\{ROFI_PASS_DEFAULT_USER-$(whoami)\}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./ssh-agent.nix ];
|
||||
imports = [ ./ssh-agent.nix ./gpg-agent.nix ];
|
||||
}
|
||||
|
||||
28
home/services/gpg-agent.nix
Normal file
28
home/services/gpg-agent.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
# See https://github.com/nix-community/home-manager/issues/3095
|
||||
let
|
||||
pinentryRofi = pkgs.writeShellApplication {
|
||||
name = "pinentry-rofi-with-env";
|
||||
text = ''
|
||||
PATH="$PATH:${pkgs.coreutils}/bin:${pkgs.rofi}/bin"
|
||||
"${pkgs.pinentry-rofi}/bin/pinentry-rofi" "$@"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
home.packages = with pkgs; [ pinentry-rofi ];
|
||||
|
||||
programs.gpg.enable = true;
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
pinentryFlavor = null;
|
||||
defaultCacheTtl = 7200; # 2h
|
||||
maxCacheTtl = 28800; # 8h
|
||||
extraConfig = ''
|
||||
pinentry-program ${pinentryRofi}/bin/pinentry-rofi-with-env
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user