From 7283e8dad45d44a915163e69a80adba87a4d2d47 Mon Sep 17 00:00:00 2001 From: OCbwoy3 Date: Wed, 12 Mar 2025 17:09:58 +0200 Subject: [PATCH] e --- README.md | 8 ++++++++ hosts/default/other/activate.nix | 17 ----------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 075db12..cc02131 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/hosts/default/other/activate.nix b/hosts/default/other/activate.nix index 3fe9e65..6b19af5 100644 --- a/hosts/default/other/activate.nix +++ b/hosts/default/other/activate.nix @@ -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