From d397355cfaa8b49471305f52d125cd73e4191a3e Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sun, 8 Oct 2023 18:16:06 +0200 Subject: Misc formatting/cleaning --- home/git/default.nix | 11 ++++++++--- modules/home-manager/git-credential-lastpass/default.nix | 10 ++++++++-- modules/nixos/nofitications.linus.onl/default.nix | 5 +---- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/home/git/default.nix b/home/git/default.nix index cf6419c..c950a94 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -1,5 +1,10 @@ -{pkgs,lib,...}: let inherit (lib.modules) mkIf; -inherit (pkgs.stdenv.hostPlatform) isDarwin; +{ + pkgs, + lib, + ... +}: let + inherit (lib.modules) mkIf; + inherit (pkgs.stdenv.hostPlatform) isDarwin; in { programs.git = { enable = true; @@ -8,7 +13,7 @@ in { userName = "Linnnus"; userEmail = "linnnus@users.noreply.github.com"; - extraConfig.credential.helper = mkIf isDarwin [ "osxkeychain" ]; + extraConfig.credential.helper = mkIf isDarwin ["osxkeychain"]; }; programs.git-credential-lastpass.enable = !isDarwin; diff --git a/modules/home-manager/git-credential-lastpass/default.nix b/modules/home-manager/git-credential-lastpass/default.nix index bbc8d34..1677178 100644 --- a/modules/home-manager/git-credential-lastpass/default.nix +++ b/modules/home-manager/git-credential-lastpass/default.nix @@ -1,4 +1,10 @@ -{pkgs, config, lib, ...}: let inherit (lib.options) mkEnableOption mkPackageOption; +{ + pkgs, + config, + lib, + ... +}: let + inherit (lib.options) mkEnableOption mkPackageOption; inherit (lib.modules) mkIf; cfg = config.programs.git-credential-lastpass; in { @@ -9,6 +15,6 @@ in { }; config = mkIf cfg.enable { - programs.git.extraConfig.credential.helper = [ "${cfg.package}/bin/git-credential-lastpass" ]; + programs.git.extraConfig.credential.helper = ["${cfg.package}/bin/git-credential-lastpass"]; }; } diff --git a/modules/nixos/nofitications.linus.onl/default.nix b/modules/nixos/nofitications.linus.onl/default.nix index c2064ec..c050ef4 100644 --- a/modules/nixos/nofitications.linus.onl/default.nix +++ b/modules/nixos/nofitications.linus.onl/default.nix @@ -1,12 +1,9 @@ { - pkgs, lib, config, ... }: let - inherit (lib) mkEnableOption mkOption types mkIf optional; - - domain = "notifications.linus.onl"; + inherit (lib) mkEnableOption mkIf; cfg = config.modules."notifications.linus.onl"; in { -- cgit v1.2.3