mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
Apply nixfmt on many files
This commit is contained in:
parent
9799d3de2d
commit
45abf3d38a
177 changed files with 2850 additions and 3565 deletions
|
|
@ -6,9 +6,7 @@ let
|
|||
|
||||
cfg = config.services.gnome-keyring;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
in {
|
||||
meta.maintainers = [ maintainers.rycee ];
|
||||
|
||||
options = {
|
||||
|
|
@ -16,8 +14,8 @@ in
|
|||
enable = mkEnableOption "GNOME Keyring";
|
||||
|
||||
components = mkOption {
|
||||
type = types.listOf (types.enum ["pkcs11" "secrets" "ssh"]);
|
||||
default = [];
|
||||
type = types.listOf (types.enum [ "pkcs11" "secrets" "ssh" ]);
|
||||
default = [ ];
|
||||
description = ''
|
||||
The GNOME keyring components to start. If empty then the
|
||||
default set of components will be started.
|
||||
|
|
@ -34,22 +32,15 @@ in
|
|||
};
|
||||
|
||||
Service = {
|
||||
ExecStart =
|
||||
let
|
||||
args = concatStringsSep " " (
|
||||
[ "--start" "--foreground" ]
|
||||
++ optional (cfg.components != []) (
|
||||
"--components=" + concatStringsSep "," cfg.components
|
||||
)
|
||||
);
|
||||
in
|
||||
"${pkgs.gnome3.gnome_keyring}/bin/gnome-keyring-daemon ${args}";
|
||||
ExecStart = let
|
||||
args = concatStringsSep " " ([ "--start" "--foreground" ]
|
||||
++ optional (cfg.components != [ ])
|
||||
("--components=" + concatStringsSep "," cfg.components));
|
||||
in "${pkgs.gnome3.gnome_keyring}/bin/gnome-keyring-daemon ${args}";
|
||||
Restart = "on-abort";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
Install = { WantedBy = [ "graphical-session-pre.target" ]; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue