diff --git a/nixos/layers/subraum.nix b/nixos/layers/subraum.nix new file mode 100644 index 0000000000000000000000000000000000000000..7f2028bf35ec0930d1b0e506927b22cc5abdc358 --- /dev/null +++ b/nixos/layers/subraum.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: + +{ + services.acpid.enable = true; + services.acpid.powerEventCommands = "${pkgs.openssh}/bin/ssh -o BatchMode=yes -o StrictHostKeyChecking=no -T edi sob noot"; + + fileSystems.amnesia = { + mountPoint = "/mnt/amnesia"; + device = "//amnesia.subraum.c3pb.de/datengrab"; + fsType = "cifs"; + options = [ + "uid=1000" + "guest" + "x-systemd.automount" + "noauto" + "x-systemd.idle-timeout=60" + "x-systemd.device-timeout=5s" + "x-systemd.mount-timeout=5s" + "vers=1.0" + ]; + }; +} \ No newline at end of file