diff --git a/flake.nix b/flake.nix index 7f70899..5be8e89 100644 --- a/flake.nix +++ b/flake.nix @@ -40,7 +40,7 @@ inherit system; specialArgs = attrs; modules = [ - (applyOverlays [ unfree-overlay ]) + (applyOverlays [ unfree-overlay unstable-overlay ]) ./machines/kcnhub/configuration.nix sops-nix.nixosModules.sops ]; diff --git a/machines/kcnhub/configuration.nix b/machines/kcnhub/configuration.nix index 5ad26d1..abc2334 100644 --- a/machines/kcnhub/configuration.nix +++ b/machines/kcnhub/configuration.nix @@ -6,6 +6,8 @@ ./hardware-configuration.nix # Set of Modules Defining System Configuration ./modules.nix + # Set of system services, like ssh, and RDP/VNC + ./services.nix # Set of System Wide Available Packages ./packages.nix # Set of Users on This System diff --git a/machines/kcnhub/services.nix b/machines/kcnhub/services.nix new file mode 100644 index 0000000..52fe090 --- /dev/null +++ b/machines/kcnhub/services.nix @@ -0,0 +1,5 @@ +{ ... }: { + imports = [ + ./services/remote-desktop-guac.nix + ]; +} diff --git a/machines/kcnhub/services/remote-desktop-guac.nix b/machines/kcnhub/services/remote-desktop-guac.nix new file mode 100644 index 0000000..bd3e52c --- /dev/null +++ b/machines/kcnhub/services/remote-desktop-guac.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, nixpkgs-unstable, ... }: { + imports = [ + "${nixpkgs-unstable}/nixos/modules/services/web-apps/guacamole-server.nix" + ]; + + services.guacamole-server.enable = true; + services.guacamole-server.package = pkgs.unstable.guacamole-server; + services.guacamole-server.port = 4822; +}