1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

feat: mount network devices under ~/remote

This commit is contained in:
2024-04-08 08:17:52 +02:00
parent 35a91d755a
commit aff3f9ac92
6 changed files with 39 additions and 25 deletions

View File

@@ -8,7 +8,7 @@
inherit (import ../../lib) tmpfilesConfig;
mukkeMountPoint = "/mnt/mukke";
fritzboxMountPoint = "/media/fritz";
fritzboxMountPoint = "/mnt/fritz";
streams = import ../../lib/streams.nix {
di-fm-key = "%DI_FM_KEY%"; # TODO lib.strings.fileContents <secrets/di.fm/key>;
@@ -43,6 +43,19 @@ in {
];
};
fileSystems."${fritzboxMountPoint}" = {
device = "//192.168.178.1/FRITZ.NAS/Backup";
fsType = "cifs";
options = [
"username=ftpuser"
"password=ftppassword"
"noauto"
"nounix"
"ro"
"noserverino" # ref https://askubuntu.com/a/1265165
];
};
systemd.tmpfiles.rules = [
(tmpfilesConfig {
type = "L+";