diff options
| author | Mel <mel@rnrd.eu> | 2025-07-25 15:40:28 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-07-25 15:40:28 +0200 |
| commit | 8572f3b4db7e26d7e2751f03873069943fca3fe8 (patch) | |
| tree | 2693aa8104a3afb2459cab2d5d3763ad1f5443ee /modules | |
| parent | 99a008a30f2be2cc417e309ef01d02d6995f0c78 (diff) | |
| download | minerals-8572f3b4db7e26d7e2751f03873069943fca3fe8.tar.zst minerals-8572f3b4db7e26d7e2751f03873069943fca3fe8.zip | |
Use age secrets on mineral machines (mainly for work-related tasks)
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/common.nix | 5 | ||||
| -rw-r--r-- | modules/user.nix | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/modules/common.nix b/modules/common.nix index 66d48bb..45395a1 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -92,6 +92,11 @@ in }; }; + # on desktop machines (a.k.a. minerals) we only use tailscale ssh + # for access, so we don't generally have normal host keys, and + # have to grab the ones tailscale uses. + age.identityPaths = [ "/var/lib/tailscale/ssh/ssh_host_ed25519_key" ]; + # TODO: the filter already does some good work, but we need some way to # pick out x86-only packages, so it is not as opaque as it currently is. # (who knows if muse-sounds-manager is actually installed, for example?) diff --git a/modules/user.nix b/modules/user.nix index 55985b6..5fd5dfa 100644 --- a/modules/user.nix +++ b/modules/user.nix @@ -1,13 +1,17 @@ { config, pkgs, unstablePkgs, auxiliaryPkgs, ... }: { + age.secrets.password = { + file = ../secrets/password.age; + }; + users.mutableUsers = false; users.users.mel = { isNormalUser = true; description = "Mel"; shell = pkgs.fish; extraGroups = [ "wheel" "dialout" "kvm" "networkmanager" "adbusers" ]; - hashedPassword = "$y$j9T$4wGl.YJizIpcfFv0LyvLU0$7LLEkjIFWBOV.XXynReCOczBYNX0EZfMPIDB/bmmhhC"; + hashedPasswordFile = config.age.secrets.password.path; # TODO: commented out pacckages are currently not available on ARM, and thus not on the # moissanite machine. filter them out in a better way. |
