Skip to content

Commit

Permalink
feat(hackwerk): add lasercutter network share
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle committed Dec 22, 2024
1 parent 3d56bf1 commit adea650
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home/clonerer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ let
path = "${hackwerkReposPath}";
origin = "[email protected]:sfz.aalen/infra/miraakunix.git";
}
{
name = "logos";
path = "${hackwerkReposPath}";
origin = "[email protected]:sfz.aalen/hackwerk/hackwerklogo.git";
}
{
name = "stickers";
path = "${hackwerkReposPath}";
Expand Down
1 change: 1 addition & 0 deletions modules/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
./fonts.nix
./gtk.nix
./locales.nix
./mounts.nix
./network.nix
./nix.nix
./podman.nix
Expand Down
16 changes: 16 additions & 0 deletions modules/mounts.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{ pkgs, ... }:
{
services.rpcbind.enable = true; # needed for NFS
# For mount.cifs, required unless domain name resolution is not needed.
environment.systemPackages = [ pkgs.cifs-utils ];

fileSystems."/mnt/lasercutter" = {
fsType = "nfs";
device = "10.20.42.50:/Lasercutter";
options = [
"x-systemd.automount"
"noauto"
"x-systemd.idle-timeout=600" # disconnects after 10 minutes (i.e. 600 seconds)
];
};
}

0 comments on commit adea650

Please sign in to comment.