summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hel.nix38
1 files changed, 17 insertions, 21 deletions
diff --git a/hel.nix b/hel.nix
index 024429f0..4958a58f 100644
--- a/hel.nix
+++ b/hel.nix
@@ -454,13 +454,21 @@
454 }; 454 };
455 455
456 systemd.automounts = [ 456 systemd.automounts = [
457 { enable = true; 457 {
458 where = "/run/media/var/media"; 458 where = "/run/media/var/media";
459 automountConfig = { 459 automountConfig = {
460 DirectoryMode = "700"; 460 DirectoryMode = "700";
461 }; 461 };
462 wantedBy = [ "local-fs.target" ]; 462 wantedBy = [ "local-fs.target" ];
463 } 463 }
464 {
465 where = "/media";
466 automountConfig = {
467 TimeoutIdleSec = "5min";
468 DirectoryMode = "755";
469 };
470 wantedBy = [ "remote-fs.target" ];
471 }
464 ]; 472 ];
465 473
466 systemd.mounts = [ 474 systemd.mounts = [
@@ -473,6 +481,14 @@
473 DirectoryMode = "700"; 481 DirectoryMode = "700";
474 }; 482 };
475 } 483 }
484 {
485 where = "/media";
486 what = "\\\\odin.asgard.yggdrasil\\media";
487 type = "cifs";
488 options = lib.concatStringsSep ","
489 [ "guest"
490 ];
491 }
476 ]; 492 ];
477 493
478 systemd.user.services."pulseaudio".enable = lib.mkForce false; 494 systemd.user.services."pulseaudio".enable = lib.mkForce false;
@@ -568,25 +584,5 @@
568 disable spoolss = yes 584 disable spoolss = yes
569 ''; 585 '';
570 }; 586 };
571
572 systemd.mounts = [
573 {
574 where = "/media";
575 what = "\\\\odin.asgard.yggdrasil\\media";
576 type = "cifs";
577 options = lib.concatStringsSep ","
578 [ "guest"
579 ];
580 }
581 ];
582
583 systemd.automounts = [
584 {
585 where = "/media";
586 automountConfig = {
587 TimeoutIdleSec = "5min";
588 };
589 }
590 ];
591} 587}
592 588