33 lines
546 B
Bash
Executable File
33 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
baseDir="$(realpath "$(dirname "${0}")/../")"
|
|
|
|
source \
|
|
"${baseDir}/system.conf"
|
|
|
|
|
|
zfs create\
|
|
${hostname,,}/home/${username}
|
|
|
|
zfs create\
|
|
${hostname,,}/home/${username}/.config
|
|
|
|
zfs create\
|
|
-o canmount=off\
|
|
${hostname,,}/home/${username}/.var
|
|
|
|
zfs create\
|
|
${hostname,,}/home/${username}/.var/app
|
|
|
|
zfs create\
|
|
-o canmount=off\
|
|
${hostname,,}/home/${username}/.local
|
|
|
|
zfs create\
|
|
-o canmount=off\
|
|
${hostname,,}/home/${username}/.local/share
|
|
|
|
zfs create\
|
|
${hostname,,}/home/${username}/.local/share/flatpak
|