kasei: replace a few symlinks with bindmounts

This commit is contained in:
2025-04-03 23:45:18 +02:00
parent b33aa09212
commit a30b0f2423
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{ ... }:
{
systemd.mounts = let
mkBindmount = name: src: dst: {
description = "Bindmount for ${name}";
what = src;
where = dst;
type = "none";
options = "bind";
before = [ "local-fs.target" ];
wantedBy = [ "local-fs.target" ];
};
in [
(mkBindmount ".local" "/data/local" "/home/h7x4/.local")
(mkBindmount "Downloads" "/data/Downloads" "/home/h7x4/Downloads")
(mkBindmount "Dropbox" "/data/Dropbox" "/home/h7x4/Dropbox")
(mkBindmount "MEGA" "/data/MEGA" "/home/h7x4/MEGA")
(mkBindmount "NTNU" "/data/pCloud/NTNU" "/home/h7x4/NTNU")
(mkBindmount "ctf" "/data/ctf" "/home/h7x4/ctf")
(mkBindmount "documents" "/data/pCloud/documents" "/home/h7x4/documents")
(mkBindmount "downloads" "/data/Downloads" "/home/h7x4/downloads")
(mkBindmount "git" "/data/git" "/home/h7x4/git")
(mkBindmount "music" "/data/pCloud" "/home/h7x4/music")
(mkBindmount "nixpkgs" "/data/nixpkgs" "/home/h7x4/nixpkgs")
(mkBindmount "pictures" "/data/pCloud/pictures" "/home/h7x4/pictures")
(mkBindmount "pvv" "/data/pvv" "/home/h7x4/pvv")
(mkBindmount "Zotero" "/data/Zotero" "/home/h7x4/Zotero")
];
}

View File

@@ -11,6 +11,7 @@
./services/tailscale.nix
./services/keybase.nix
./bindmounts.nix
./nspawn-containers/arch.nix
./testconfig.nix