moving secrets to nixos module

This commit is contained in:
Anish L 2022-04-21 13:17:15 +10:00
parent 033d564c44
commit 20a75c90df
3 changed files with 12 additions and 6 deletions

View file

@ -117,9 +117,8 @@
cube = [ base ]; cube = [ base ];
# home-manager = [ users.profiles.firefox users.profiles.desktop users.profiles.nvim ]; # home-manager = [ users.profiles.firefox users.profiles.desktop users.profiles.nvim ];
graphical = [ base bluetooth music sync wireguard wifi desktop ]; graphical = [ base bluetooth music sync wireguard wifi desktop ];
# secrets = [ secrets ]; curve = [ graphical secrets ];
curve = [ graphical ]; work = [ base ];
work = [ base home-manager ];
}; };
}; };
}; };
@ -133,6 +132,7 @@
suites = with profiles; rec { suites = with profiles; rec {
hmBase = [ direnv git nvim ]; hmBase = [ direnv git nvim ];
gui = [ hmBase firefox desktop email cal ]; gui = [ hmBase firefox desktop email cal ];
work = [ hmBase firefox ];
}; };
}; };
users = { users = {

View file

@ -0,0 +1,9 @@
{ pkgs, config, lib, ... }:
{
# Secrets used by home-manager modules
age.secrets.fastmail.file = "/etc/nixos/secrets/fastmail.age";
age.secrets.fastmail.owner = "anish";
age.secrets.mossnet.file = "/etc/nixos/secrets/mossnet.age";
age.secrets.mossnet.owner = "anish";
}

View file

@ -1,9 +1,6 @@
{ pkgs, config, age, ... }: { pkgs, config, age, ... }:
{ {
#age.secrets.mossnet.file = "/etc/nixos/secrets/mossnet.age";
#age.secrets.mossnet.owner = "anish";
home.packages = with pkgs; [ home.packages = with pkgs; [
khal khal
khard khard