summary refs log tree commit diff stats
path: root/system/users/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-24 16:09:20 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-24 16:09:20 +0100
commitb5fc07416652a445f15946ce7e5fc48766cf6722 (patch)
treede37587f0673e4aea12bc0532ee1b3879ab1e31c /system/users/default.nix
parentfix(modules/back): Set now needed source code URL environment variable (diff)
downloadnixos-server-b5fc07416652a445f15946ce7e5fc48766cf6722.tar.gz
nixos-server-b5fc07416652a445f15946ce7e5fc48766cf6722.zip
refactor(modules/impermanence): Migrate to by-name while distributing mods
Diffstat (limited to 'system/users/default.nix')
-rw-r--r--system/users/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/system/users/default.nix b/system/users/default.nix
index 1b7b29b..0da0515 100644
--- a/system/users/default.nix
+++ b/system/users/default.nix
@@ -1,4 +1,37 @@
 {pkgs, ...}: {
+  vhack.persist.directories = [
+    {
+      directory = "/home";
+      user = "root";
+      group = "root";
+      mode = "0755";
+    }
+    {
+      directory = "/home/sils";
+      user = "sils";
+      group = "sils";
+      mode = "0700";
+    }
+    {
+      directory = "/home/soispha";
+      user = "soispha";
+      group = "soispha";
+      mode = "0700";
+    }
+    {
+      directory = "/home/nightingale";
+      user = "nightingale";
+      group = "nightingale";
+      mode = "0700";
+    }
+    {
+      directory = "/root/.ssh";
+      user = "root";
+      group = "root";
+      mode = "0700";
+    }
+  ];
+
   users = {
     mutableUsers = false;
     defaultUserShell = pkgs.zsh;