diff --git a/lib/default.nix b/lib/default.nix index 40c59c87..ed3c64fd 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -45,6 +45,7 @@ pkgs-unstable ? import inputs.nixpkgs-unstable { inherit system; config.allowUnfree = unfree; hostPlatform = system; } }: { + bindMounts = import ../nixos/containers/${hostname}/mounts.nix; autoStart = true; privateNetwork = false; specialArgs = { inherit pkgs pkgs-unstable hostname username desktop theme system repo unfree stateVersion tskey; }; diff --git a/nixos/containers/rdesktop/default.nix b/nixos/containers/rdesktop/default.nix index b12f78f2..e6408deb 100644 --- a/nixos/containers/rdesktop/default.nix +++ b/nixos/containers/rdesktop/default.nix @@ -3,7 +3,7 @@ ../../common/desktops/${desktop} ]; - networking.firewall.allowedTCPPorts = [ 3389 ]; + networking.firewall.allowedTCPPorts = [ 3389 ];: services.xrdp = { enable = true; diff --git a/nixos/containers/rdesktop/mounts.nix b/nixos/containers/rdesktop/mounts.nix new file mode 100644 index 00000000..49dab741 --- /dev/null +++ b/nixos/containers/rdesktop/mounts.nix @@ -0,0 +1,6 @@ +{ ... }: { + "/etc/nixos/git" = { + hostPath = "/etc/nixos/git"; + isReadOnly = true; + }; +}