Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
configFile = "cliphist/cliphistrc";
|
||||
in {
|
||||
users.users.someone.packages = with pkgs; [
|
||||
cliphist
|
||||
wl-clipboard
|
||||
];
|
||||
|
||||
systemd.user.services.cliphist = {
|
||||
description = "Clipboard management daemon";
|
||||
wantedBy = ["graphical-session.target"];
|
||||
after = ["graphical-session.target"];
|
||||
partOf = ["graphical-session.target"];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.wl-clipboard}/bin/wl-paste --watch ${pkgs.cliphist}/bin/cliphist -max-dedupe-search 10 -max-items 500 store";
|
||||
Restart = "on-failure";
|
||||
Type = "simple";
|
||||
};
|
||||
|
||||
path = [pkgs.cliphist pkgs.wl-clipboard];
|
||||
};
|
||||
|
||||
xdg.configFile."${configFile}".text = ''
|
||||
allow_images=true
|
||||
max_entries=500
|
||||
database=${config.xdg.dataHome}/cliphist/db
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
systemd.user.services.gpg-agent = {
|
||||
description = "GnuPG cryptographic agent and passphrase cache";
|
||||
documentation = ["man:gpg-agent(1)"];
|
||||
wantedBy = ["default.target"];
|
||||
|
||||
serviceConfig = {
|
||||
Environment = "GNUPGHOME=${config.xdg.configHome}/gnupg";
|
||||
ExecStart = "${pkgs.gnupg}/bin/gpg-agent --supervised";
|
||||
ExecReload = "${pkgs.gnupg}/bin/gpgconf --reload gpg-agent";
|
||||
Type = "simple";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{pkgs, ...}: {
|
||||
users.users.someone.packages = with pkgs; [
|
||||
polkit_gnome
|
||||
];
|
||||
|
||||
systemd.user.services.polkit-gnome = {
|
||||
description = "GNOME PolicyKit Agent";
|
||||
wantedBy = ["graphical-session.target"];
|
||||
after = ["graphical-session.target"];
|
||||
partOf = ["graphical-session.target"];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user