use flatpak slicers with limited file access
This commit is contained in:
parent
9344fcb656
commit
208eca0062
2 changed files with 2 additions and 33 deletions
|
@ -6,6 +6,8 @@ let
|
|||
|
||||
# all wanted flatpak packages
|
||||
desiredFlatpaks = {
|
||||
"com.bambulab.BambuStudio" = "--nofilesystem=xdg-music --nofilesystem=xdg-pictures";
|
||||
"com.prusa3d.PrusaSlicer" = "--nofilesystem=xdg-music --nofilesystem=xdg-pictures";
|
||||
"com.usebottles.bottles" = "--nofilesystem=xdg-music --nofilesystem=xdg-pictures";
|
||||
"com.valvesoftware.Steam" = "--nofilesystem=xdg-music --nofilesystem=xdg-pictures";
|
||||
"com.vivaldi.Vivaldi" = "--nofilesystem=xdg-music --nofilesystem=xdg-pictures";
|
||||
|
|
|
@ -74,27 +74,6 @@ in
|
|||
# use fixed auth keys
|
||||
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
|
||||
};
|
||||
|
||||
#
|
||||
# sandbox for 3d printing
|
||||
#
|
||||
users.sandbox-3d-printing = {
|
||||
# home on persistent volume
|
||||
home = "/data/home/sandbox-3d-printing";
|
||||
|
||||
# hard code UID for stability over machines
|
||||
# out of range of normal login users
|
||||
uid = 32002;
|
||||
|
||||
# normal user
|
||||
isNormalUser = true;
|
||||
|
||||
# sandbox user
|
||||
description = "Sandbox 3D Printing";
|
||||
|
||||
# use fixed auth keys
|
||||
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
|
||||
};
|
||||
};
|
||||
|
||||
# home manager settings
|
||||
|
@ -152,17 +131,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# 3d printing user with extra settings
|
||||
users.sandbox-3d-printing = {
|
||||
# shared config
|
||||
imports = [ ./home.nix ];
|
||||
|
||||
# install 3d printing stuff
|
||||
home.packages = with pkgs; [
|
||||
bambu-studio
|
||||
prusa-slicer
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue