Commit 41bc6bd

HPCesia <me@hpcesia.com>
2025-10-13 14:04:34
feat: specific screenshot and recorder's storage path
1 parent d50854e
Changed files (2)
modules
desktop
modules/desktop/shell/niri/default.nix
@@ -14,11 +14,13 @@
     services.noctalia-shell.enable = true;
   };
 
-  flake.modules.homeManager.niri = _: {
+  flake.modules.homeManager.niri = {config, ...}: {
     imports = [
       inputs.noctalia.homeModules.default
     ];
 
+    programs.niri.settings.screenshot-path = "${config.xdg.userDirs.pictures}/Screenshots";
+
     programs.noctalia-shell = {
       enable = true;
     };
modules/desktop/shell/niri/noctalia.nix
@@ -18,6 +18,7 @@
           terminalCommand = "ghostty -e";
         };
         location.name = "重庆, 中国";
+        screenRecorder.directory = config.xdg.userDirs.videos;
         bar = {
           backgroundOpacity = 0.9;
           density = "comfortable";