mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
parent
561b3d5650
commit
43ef16c3e1
4 changed files with 54 additions and 0 deletions
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -101,6 +101,8 @@
|
||||||
|
|
||||||
/modules/services/cbatticon.nix @pmiddend
|
/modules/services/cbatticon.nix @pmiddend
|
||||||
|
|
||||||
|
/modules/services/clipmenu.nix @DamienCassou
|
||||||
|
|
||||||
/modules/services/dunst.nix @rycee
|
/modules/services/dunst.nix @rycee
|
||||||
|
|
||||||
/modules/services/emacs.nix @tadfisher
|
/modules/services/emacs.nix @tadfisher
|
||||||
|
|
|
@ -1552,6 +1552,14 @@ in
|
||||||
It can be enabled through the option 'services.emacs.socketActivation.enable'.
|
It can be enabled through the option 'services.emacs.socketActivation.enable'.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
time = "2020-06-12T17:48:01+00:00";
|
||||||
|
condition = hostPlatform.isLinux;
|
||||||
|
message = ''
|
||||||
|
A new module is available: 'services.clipmenu'
|
||||||
|
'';
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@ let
|
||||||
(loadModule ./programs/zsh.nix { })
|
(loadModule ./programs/zsh.nix { })
|
||||||
(loadModule ./services/blueman-applet.nix { })
|
(loadModule ./services/blueman-applet.nix { })
|
||||||
(loadModule ./services/cbatticon.nix { condition = hostPlatform.isLinux; })
|
(loadModule ./services/cbatticon.nix { condition = hostPlatform.isLinux; })
|
||||||
|
(loadModule ./services/clipmenu.nix { condition = hostPlatform.isLinux; })
|
||||||
(loadModule ./services/compton.nix { })
|
(loadModule ./services/compton.nix { })
|
||||||
(loadModule ./services/dunst.nix { })
|
(loadModule ./services/dunst.nix { })
|
||||||
(loadModule ./services/dwm-status.nix { condition = hostPlatform.isLinux; })
|
(loadModule ./services/dwm-status.nix { condition = hostPlatform.isLinux; })
|
||||||
|
|
43
modules/services/clipmenu.nix
Normal file
43
modules/services/clipmenu.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
cfg = config.services.clipmenu;
|
||||||
|
|
||||||
|
in {
|
||||||
|
meta.maintainers = [ maintainers.DamienCassou ];
|
||||||
|
|
||||||
|
options.services.clipmenu = {
|
||||||
|
enable = mkEnableOption "clipmenu, the clipboard management daemon";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.clipmenu;
|
||||||
|
defaultText = "pkgs.clipmenu";
|
||||||
|
description = "clipmenu derivation to use.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
systemd.user.services.clipmenu = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Clipboard management daemon";
|
||||||
|
After = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${cfg.package}/bin/clipmenud";
|
||||||
|
Environment = "PATH=${
|
||||||
|
makeBinPath
|
||||||
|
(with pkgs; [ coreutils findutils gnugrep gnused systemd ])
|
||||||
|
}";
|
||||||
|
};
|
||||||
|
|
||||||
|
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue