summary refs log tree commit diff
path: root/modules/user.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-25 15:40:28 +0200
committerMel <mel@rnrd.eu>2025-07-25 15:40:28 +0200
commit8572f3b4db7e26d7e2751f03873069943fca3fe8 (patch)
tree2693aa8104a3afb2459cab2d5d3763ad1f5443ee /modules/user.nix
parent99a008a30f2be2cc417e309ef01d02d6995f0c78 (diff)
downloadminerals-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/user.nix')
-rw-r--r--modules/user.nix6
1 files changed, 5 insertions, 1 deletions
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.