diff --git a/modules/common/services/desktop.nix b/modules/common/services/desktop.nix index e4fbfc616..38b7d1c5c 100644 --- a/modules/common/services/desktop.nix +++ b/modules/common/services/desktop.nix @@ -181,7 +181,7 @@ in { name = "File Manager"; description = "Organize & Manage Files"; - path = "${pkgs.pcmanfm}/bin/pcmanfm"; + path = "${pkgs.pcmanfm}/bin/pcmanfm /Shares"; icon = "system-file-manager"; } diff --git a/modules/common/users/desktop.nix b/modules/common/users/desktop.nix index f4a477be7..81d984494 100644 --- a/modules/common/users/desktop.nix +++ b/modules/common/users/desktop.nix @@ -31,6 +31,9 @@ let type = types.listOf types.str; default = [ ]; }; + readOnlyHome = mkEnableOption "read-only home directory" // { + default = true; + }; homeSize = mkOption { description = '' Size of the home directory for the login user in MB (integer). @@ -273,6 +276,7 @@ in --noexec=true \ --nodev=true \ --disk-size=${toString cfg.loginUser.homeSize}M \ + --access-mode=${if cfg.loginUser.readOnlyHome then "500" else "700"} \ --shell=/run/current-system/sw/bin/bash \ --uid=${toString cfg.loginUser.uid} \ --member-of=users${ diff --git a/modules/reference/desktop/applications.nix b/modules/reference/desktop/applications.nix index 9b8b4fc42..87166b46d 100644 --- a/modules/reference/desktop/applications.nix +++ b/modules/reference/desktop/applications.nix @@ -35,7 +35,7 @@ in name = "File Manager"; description = "Organize & Manage Files"; icon = "system-file-manager"; - command = "${pkgs.pcmanfm}/bin/pcmanfm"; + command = "${pkgs.pcmanfm}/bin/pcmanfm /Shares"; } {