summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-07-02 09:02:19 +0200
committersils <sils@sils.li>2023-07-02 09:02:19 +0200
commite4203c708762e454b398b70abda192b8a33b9856 (patch)
treee5557d51e4c7c24b5b57fb440fcdb9ea84eeb92e
parentFeat(s/users): Disable autologin (diff)
downloadnix-config-e4203c708762e454b398b70abda192b8a33b9856.tar.gz
nix-config-e4203c708762e454b398b70abda192b8a33b9856.zip
Feat(s/environment): Add crypttab
-rw-r--r--sys/environment/default.nix54
1 files changed, 31 insertions, 23 deletions
diff --git a/sys/environment/default.nix b/sys/environment/default.nix
index ddd7fe5..6a0d4f2 100644
--- a/sys/environment/default.nix
+++ b/sys/environment/default.nix
@@ -1,28 +1,36 @@
 {...}: {
-  environment.sessionVariables = {
-    XDG_CACHE_HOME = "\${HOME}/.cache";
-    XDG_CONFIG_HOME = "\${HOME}/.config";
-    XDG_BIN_HOME = "\${HOME}/.local/bin";
-    XDG_DATA_HOME = "\${HOME}/.local/share";
-    XDG_STATE_HOME = "\${HOME}/.local/state";
-    ZDOTDIR = "\${HOME}/.config/zsh";
-    CARGO_HOME = "\${HOME}/.local/share/cargo";
-    ANDROID_HOME = "\${HOME}/.local/share/android";
-    ANSIBLE_HOME = "\${HOME}/.local/share/ansible";
-    #_JAVA_OPTIONS	= '-Djava.util.prefs.userRoot="\${XDG_CONFIG_HOME}/java"';
-    WINEPREFIX = "\${HOME}/.local/share/wine";
-    GNUPGHOME = "\${HOME}/.local/share/gnupg";
-    GRADLE_USER_HOME = "\${HOME}/.local/share/gradle";
-    GTK2_RC_FILES = "\${HOME}/.config/gtk-2.0/gtkrc";
-    EDITOR = "nvim";
-    GOPATH = "\${HOME}/.local/share/go";
-    XCOMPOSECACHE = "\${HOME}/.cache/X11/xcompose";
-    CDPATH = ".:\${HOME}:\${HOME}/repos/:\${HOME}/srv";
+  environment = {
+    sessionVariables = {
+      XDG_CACHE_HOME = "\${HOME}/.cache";
+      XDG_CONFIG_HOME = "\${HOME}/.config";
+      XDG_BIN_HOME = "\${HOME}/.local/bin";
+      XDG_DATA_HOME = "\${HOME}/.local/share";
+      XDG_STATE_HOME = "\${HOME}/.local/state";
+      ZDOTDIR = "\${HOME}/.config/zsh";
+      CARGO_HOME = "\${HOME}/.local/share/cargo";
+      ANDROID_HOME = "\${HOME}/.local/share/android";
+      ANSIBLE_HOME = "\${HOME}/.local/share/ansible";
+      #_JAVA_OPTIONS	= '-Djava.util.prefs.userRoot="\${XDG_CONFIG_HOME}/java"';
+      WINEPREFIX = "\${HOME}/.local/share/wine";
+      GNUPGHOME = "\${HOME}/.local/share/gnupg";
+      GRADLE_USER_HOME = "\${HOME}/.local/share/gradle";
+      GTK2_RC_FILES = "\${HOME}/.config/gtk-2.0/gtkrc";
+      EDITOR = "nvim";
+      GOPATH = "\${HOME}/.local/share/go";
+      XCOMPOSECACHE = "\${HOME}/.cache/X11/xcompose";
+      CDPATH = ".:\${HOME}:\${HOME}/repos/:\${HOME}/srv";
 
-    #PYTHONSTARTUP="/etc/python/pythonrc";
+      #PYTHONSTARTUP="/etc/python/pythonrc";
 
-    PATH = [
-      "\${XDG_BIN_HOME}"
-    ];
+      PATH = [
+        "\${XDG_BIN_HOME}"
+      ];
+    };
+    etc.crypttab = {
+      enable = true;
+      text = ''
+        luks-f4ba9aae-e34f-4a72-98ab-88787f7c1986 UUID=ec3b114-502c-425f-b59b-4ef8ffcf7e99 none tpm2-device=auto,noauto
+     '';
+    };
   };
 }