This commit is contained in:
2025-03-12 17:09:58 +02:00
parent c1afb5e453
commit 7283e8dad4
2 changed files with 8 additions and 17 deletions

View File

@@ -38,3 +38,11 @@ git clone https://github.com/ocbwoy3/config
cd config
sudo nixos-rebuild switch --flake .#default --impure --cores 4
```
```bash
mkdir -p /home/ocbwoy3/Pictures/Screenshots
mkdir -p /home/ocbwoy3/Downloads
mkdir -p /home/ocbwoy3/Desktop
mkdir -p /home/ocbwoy3/Documents
mkdir -p /home/ocbwoy3/Projects
```

View File

@@ -35,23 +35,6 @@
'';
};
system.activationScripts.makeDirs = {
text = ''
create_dir() {
trap "USER=ocbwoy3 mkdir -p \"$1\"" EXIT
trap "USER=ocbwoy3 chown ocbwoy3:ocbwoy3 \"$1\"" EXIT
trap "USER=ocbwoy3 chmod 700 \"$1\"" EXIT
}
create_dir /home/$USER/Pictures/Screenshots
create_dir /home/$USER/Downloads
create_dir /home/$USER/Desktop
create_dir /home/$USER/Documents
create_dir /home/$USER/Projects
'';
};
system.activationScripts.xdgDesktopPortal = {
text = ''
echo "${pkgs.xdg-desktop-portal-gtk}/libexec/xdg-desktop-portal-gtk" > /.xdg.sh