From 2aa6e85a57bd106f15723fee5d91c305a65812ae Mon Sep 17 00:00:00 2001 From: atagen Date: Sat, 27 Aug 2022 20:15:49 +1000 Subject: [PATCH] packaged gck --- home/git-credential-keepassxc.nix | 23 +++++++++++++++++++++++ home/home.nix | 7 ++++++- system/configuration.nix | 18 +----------------- 3 files changed, 30 insertions(+), 18 deletions(-) create mode 100644 home/git-credential-keepassxc.nix diff --git a/home/git-credential-keepassxc.nix b/home/git-credential-keepassxc.nix new file mode 100644 index 0000000..7168a37 --- /dev/null +++ b/home/git-credential-keepassxc.nix @@ -0,0 +1,23 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "git-credential-keepassxc"; + version = "0.10.0"; + + src = fetchFromGitHub { + owner = "frederick888"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-BmjGxDqX8j/69Uo8jjWtcJcxNHxI7S5+eZQMApdybq0="; + }; + + cargoSha256 = "sha256-gXW08plJRE1Q6W+Dc2y+gu2R+KBRs3fBG1umdawDduA="; + + meta = with lib; { + description = ""; + homepage = "https://github.com/frederick888/git-credential-keepassxc"; + license = licenses.gpl3Only; + maintainers = [ "all me baby" ]; + }; + +} diff --git a/home/home.nix b/home/home.nix index e04e674..71779bc 100644 --- a/home/home.nix +++ b/home/home.nix @@ -46,6 +46,8 @@ plasma-browser-integration + # (callPackage /home/fossil/Code/git-credential-keepassxc/default.nix {}) + ]; gtk = { @@ -73,7 +75,7 @@ sidebery plasma-integration keepassxc-browser - arc-dark-theme-we + # arc-dark-theme-we ]; profiles.default = { id = 0; @@ -110,6 +112,9 @@ enable = true; userName = "atagen"; userEmail = "atagen@boss.co"; + extraConfig = { + credential.helper = "git-credential-keepassxc"; + }; }; programs.zoxide = { diff --git a/system/configuration.nix b/system/configuration.nix index 2683021..2a01560 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -37,23 +37,8 @@ networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. - # timezone only needs setting so localtimed has something to work off - # services.geoclue2.enable = true; time.timeZone = "Australia/Sydney"; time.hardwareClockInLocalTime = true; - # services.chrony = { - # enable = true; - # enableNTS = true; - # }; - # services.localtimed.enable = true; - networking.timeServers = [ - "0.au.pool.ntp.org" - "1.au.pool.ntp.org" - "2.au.pool.ntp.org" - "3.au.pool.ntp.org" - "pool.ntp.org" - ]; - # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; @@ -105,8 +90,6 @@ (import "${fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz"}/overlay.nix") ]; - - # List packages installed in system profile. To search, run: environment.systemPackages = with pkgs; [ rust-analyzer-nightly @@ -133,6 +116,7 @@ git zsh + ]; system.stateVersion = "22.05"; # Did you read the comment?