mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
This commit is contained in:
parent
5df48c4255
commit
cba2f9ce95
1051 changed files with 37028 additions and 26594 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -6,8 +11,12 @@ let
|
|||
cfg = config.services.pass-secret-service;
|
||||
|
||||
busName = "org.freedesktop.secrets";
|
||||
in {
|
||||
meta.maintainers = with maintainers; [ cab404 cyntheticfox ];
|
||||
in
|
||||
{
|
||||
meta.maintainers = with maintainers; [
|
||||
cab404
|
||||
cyntheticfox
|
||||
];
|
||||
|
||||
options.services.pass-secret-service = {
|
||||
enable = mkEnableOption "Pass libsecret service";
|
||||
|
|
@ -30,8 +39,7 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
(hm.assertions.assertPlatform "services.pass-secret-service" pkgs
|
||||
platforms.linux)
|
||||
(hm.assertions.assertPlatform "services.pass-secret-service" pkgs platforms.linux)
|
||||
{
|
||||
assertion = !config.services.gnome-keyring.enable;
|
||||
message = ''
|
||||
|
|
@ -43,8 +51,10 @@ in {
|
|||
];
|
||||
|
||||
systemd.user.services.pass-secret-service =
|
||||
let binPath = "${cfg.package}/bin/pass_secret_service";
|
||||
in {
|
||||
let
|
||||
binPath = "${cfg.package}/bin/pass_secret_service";
|
||||
in
|
||||
{
|
||||
Unit = {
|
||||
AssertFileIsExecutable = "${binPath}";
|
||||
Description = "Pass libsecret service";
|
||||
|
|
@ -54,9 +64,7 @@ in {
|
|||
|
||||
Service = {
|
||||
Type = "dbus";
|
||||
ExecStart = "${binPath} ${
|
||||
optionalString (cfg.storePath != null) "--path ${cfg.storePath}"
|
||||
}";
|
||||
ExecStart = "${binPath} ${optionalString (cfg.storePath != null) "--path ${cfg.storePath}"}";
|
||||
BusName = busName;
|
||||
Environment = [ "GNUPGHOME=${config.programs.gpg.homedir}" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue