made nix-secrets input comment-out-able.
This commit is contained in:
parent
f27b5ac056
commit
6147ddb903
10 changed files with 51 additions and 27 deletions
|
@ -43,6 +43,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
home-manager.users.${config.host.user} = {
|
||||
inputs,
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
host = osConfig.host;
|
||||
|
@ -59,11 +60,12 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||
../../roles/home-manager/terminal.nix
|
||||
../../configs/home-manager/common.nix
|
||||
../../configs/home-manager/email.nix
|
||||
../../configs/home-manager/tiny-irc.nix
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
../../configs/home-manager/secrets.nix
|
||||
];
|
||||
|
||||
sops = {
|
||||
sops = lib.mkIf (inputs ? nix-secrets) {
|
||||
secrets = {
|
||||
gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
|
|
|
@ -41,7 +41,7 @@ inputs.home-manager.lib.homeManagerConfiguration {
|
|||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
|
||||
sops = {
|
||||
sops = lib.mkIf (inputs ? nix-secrets) {
|
||||
secrets = {
|
||||
gmail-password.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
|
|
|
@ -40,12 +40,12 @@ inputs.home-manager.lib.homeManagerConfiguration {
|
|||
../roles/home-manager/terminal.nix
|
||||
../configs/home-manager/common.nix
|
||||
../configs/home-manager/syncthing.nix
|
||||
../../configs/home-manager/tiny-irc.nix
|
||||
../configs/home-manager/tiny-irc.nix
|
||||
../configs/home-manager/secrets.nix
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
|
||||
sops = {
|
||||
sops = lib.mkIf (inputs?nix-secrets) {
|
||||
secrets = {
|
||||
irc-cert.sopsFile = "${inputs.nix-secrets}/workstations.yaml";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue