rofi & gpg
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
# Include the results of the hardware scan.
|
# 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.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
@@ -78,7 +79,6 @@
|
|||||||
alacritty
|
alacritty
|
||||||
dmenu
|
dmenu
|
||||||
|
|
||||||
dropbox-cli
|
|
||||||
gnome.nautilus
|
gnome.nautilus
|
||||||
lxqt.lxqt-policykit # provides a default authentication client for policykit
|
lxqt.lxqt-policykit # provides a default authentication client for policykit
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Neues
|
# Neues
|
||||||
|
|
||||||
|
## Rofi
|
||||||
|
|
||||||
## Obsidian
|
## Obsidian
|
||||||
|
|
||||||
- Install?
|
- Install?
|
||||||
@@ -105,11 +107,6 @@
|
|||||||
|
|
||||||
- Maby nur PC
|
- Maby nur PC
|
||||||
|
|
||||||
## Dropbox
|
|
||||||
|
|
||||||
- Installieren
|
|
||||||
- aufräumen
|
|
||||||
|
|
||||||
## Rofi
|
## Rofi
|
||||||
|
|
||||||
- Installieren
|
- Installieren
|
||||||
@@ -177,3 +174,7 @@
|
|||||||
## Nautilus
|
## Nautilus
|
||||||
|
|
||||||
- Thumbnailer
|
- Thumbnailer
|
||||||
|
|
||||||
|
## Dropbox
|
||||||
|
|
||||||
|
- aufräumen
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./alacritty
|
./alacritty
|
||||||
./neovim
|
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./neovim
|
||||||
|
./rofi
|
||||||
./wallpaper.nix
|
./wallpaper.nix
|
||||||
./xmonad
|
./xmonad
|
||||||
./zathura.nix
|
./zathura.nix
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ dropbox dropbox-cli ];
|
||||||
# dropbox - we don't need this in the environment. systemd unit pulls it in
|
|
||||||
fq
|
|
||||||
dropbox-cli
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 17500 ];
|
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, ... }:
|
{ 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