kasei: replace a few symlinks with bindmounts
This commit is contained in:
29
hosts/kasei/bindmounts.nix
Normal file
29
hosts/kasei/bindmounts.nix
Normal 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")
|
||||
];
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
./services/tailscale.nix
|
||||
./services/keybase.nix
|
||||
|
||||
./bindmounts.nix
|
||||
./nspawn-containers/arch.nix
|
||||
|
||||
./testconfig.nix
|
||||
|
||||
Reference in New Issue
Block a user