Skip to content

Commit

Permalink
feat: enable nbd-server in t510
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarrio committed Dec 29, 2023
1 parent 758146c commit dc34479
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion nixos/workstation/t510/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@
environment.systemPackages = with pkgs; [
];

services = { };
services.nbd.server = {
enable = true;
listenAddress = "0.0.0.0";

exports = {
dvd-drive = {
path = "/dev/sr0";
allowAddresses = [ "10.0.0.0/8" ];
};
};
};

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

0 comments on commit dc34479

Please sign in to comment.