Compare commits
No commits in common. "3552314e69eca65737c86c20d185202799811aea" and "fd03c87c18c646a8b7f3ece8ddef890973abed02" have entirely different histories.
3552314e69
...
fd03c87c18
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1 +1 @@
|
|||||||
home-manager/secrets/* filter=git-crypt diff=git-crypt
|
home-manager/secrets/weather-api-key filter=git-crypt diff=git-crypt
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ git-crypt ];
|
||||||
git-crypt
|
|
||||||
libsecret
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -25,7 +22,6 @@
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
safe.directory = "/etc/nixos";
|
safe.directory = "/etc/nixos";
|
||||||
credential.helper = "${pkgs.git.override { withLibsecret = true; }}/bin/git-credential-libsecret";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
{
|
{ pkgs, inputs, ... }:
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
common = import ../../../common.nix;
|
common = import ../../../common.nix;
|
||||||
theme = import ../../../theme.nix;
|
theme = import ../../../theme.nix;
|
||||||
loader = import ../../secretsLoader.nix lib;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
|
imports = [ inputs.hyprpanel.homeManagerModules.hyprpanel ];
|
||||||
@ -80,8 +74,7 @@ in
|
|||||||
};
|
};
|
||||||
weather = {
|
weather = {
|
||||||
unit = "metric";
|
unit = "metric";
|
||||||
location = "Bergen, Norway";
|
location = "Bergen, Norway"; # TODO not working
|
||||||
key = loader.loadSecret ../../secrets/weather-api-key;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
lib:
|
|
||||||
|
|
||||||
{
|
|
||||||
loadSecret =
|
|
||||||
filePath: lib.strings.trim (lib.strings.removeSuffix "\n" (builtins.readFile filePath));
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user