summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-08 18:16:06 +0200
committerLinnnus <[email protected]>2023-10-08 18:16:06 +0200
commitd397355cfaa8b49471305f52d125cd73e4191a3e (patch)
treed352ba74bbc7a228d77540331af91c2e8078fb00
parent5f86e91cfff7d67ec446f9b3c7e1c6785d8c8f77 (diff)
Misc formatting/cleaning
-rw-r--r--home/git/default.nix11
-rw-r--r--modules/home-manager/git-credential-lastpass/default.nix10
-rw-r--r--modules/nixos/nofitications.linus.onl/default.nix5
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 = "[email protected]";
- 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 {