From 20a75c90df28e262fbc67cffc09ab5923e6f177a Mon Sep 17 00:00:00 2001 From: Anish L Date: Thu, 21 Apr 2022 13:17:15 +1000 Subject: [PATCH] moving secrets to nixos module --- flake.nix | 6 +++--- profiles/secrets/default.nix | 9 +++++++++ users/profiles/cal/default.nix | 3 --- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 profiles/secrets/default.nix diff --git a/flake.nix b/flake.nix index 8c129909..b8a4a847 100644 --- a/flake.nix +++ b/flake.nix @@ -117,9 +117,8 @@ cube = [ base ]; # home-manager = [ users.profiles.firefox users.profiles.desktop users.profiles.nvim ]; graphical = [ base bluetooth music sync wireguard wifi desktop ]; - # secrets = [ secrets ]; - curve = [ graphical ]; - work = [ base home-manager ]; + curve = [ graphical secrets ]; + work = [ base ]; }; }; }; @@ -133,6 +132,7 @@ suites = with profiles; rec { hmBase = [ direnv git nvim ]; gui = [ hmBase firefox desktop email cal ]; + work = [ hmBase firefox ]; }; }; users = { diff --git a/profiles/secrets/default.nix b/profiles/secrets/default.nix new file mode 100644 index 00000000..acc2f41f --- /dev/null +++ b/profiles/secrets/default.nix @@ -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"; +} diff --git a/users/profiles/cal/default.nix b/users/profiles/cal/default.nix index 807f17c9..891638bb 100644 --- a/users/profiles/cal/default.nix +++ b/users/profiles/cal/default.nix @@ -1,9 +1,6 @@ { pkgs, config, age, ... }: { - #age.secrets.mossnet.file = "/etc/nixos/secrets/mossnet.age"; - #age.secrets.mossnet.owner = "anish"; - home.packages = with pkgs; [ khal khard