home: remove unused 'secrets' module

This commit is contained in:
Bruno BELANYI 2021-09-24 20:12:18 +02:00
parent 673ead7863
commit df302465c9
4 changed files with 0 additions and 35 deletions

View file

@ -23,7 +23,6 @@
./packages.nix
./pager.nix
./power-alert.nix
./secrets # Home-manager specific secrets
./ssh.nix
./terminal
./tmux.nix

View file

@ -1,3 +0,0 @@
* filter=git-crypt diff=git-crypt
.gitattributes !filter !diff
/default.nix !filter !diff

Binary file not shown.

View file

@ -1,31 +0,0 @@
{ lib, ... }:
with lib;
let
throwOnCanary =
let
canaryHash = builtins.hashFile "sha256" ./canary;
expectedHash =
"9df8c065663197b5a1095122d48e140d3677d860343256abd5ab6e4fb4c696ab";
in
if canaryHash != expectedHash
then throw "Secrets are not readable. Have you run `git-crypt unlock`?"
else id;
in
throwOnCanary {
options.my.secrets = mkOption {
type =
let
valueType = with types; oneOf [
int
str
(attrsOf valueType)
];
in
valueType;
};
config.my.secrets = {
# Home-manager secrets go here
};
}