Update to (somewhat?) dendritic pattern

Heavily inspired by https://github.com/Doc-Steve/dendritic-design-with-flake-parts.

> Atomic commits? Never heard of them!
This commit is contained in:
Weckyy702
2026-03-15 15:04:47 +01:00
parent 5f41ff2b1b
commit e34b5ecce3
81 changed files with 1413 additions and 1073 deletions

View File

@@ -0,0 +1,36 @@
{
config.flake.factory.mount-cifs =
{ host
, resource
, destination
, credentials_path
, UID
, GID
,
}: {
fileSystems."${destination}" = {
device = "//${host}/${resource}";
fsType = "cifs";
options = [
# automount
"x-systemd.automount"
"noauto"
"nofail"
"soft"
"x-systemd.idle-timeout=60"
"x-systemd.device-timeout=5s"
"x-systemd.mount-timeout=5s"
# mount options
"rw"
"iocharset=utf8"
# user
"uid=${UID}"
"gid=${GID}"
"credentials=${credentials_path}"
];
};
};
}