From f54b5a2448cad7ce0f97537cc56dd5345aa0e61e Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 4 Dec 2023 11:54:07 +0900 Subject: [PATCH] Testing Gnome RDP --- flake.nix | 2 +- nixos/hosts/framework-server/default.nix | 4 ++-- nixos/hosts/framework-server/gnome-rdp.nix | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 nixos/hosts/framework-server/gnome-rdp.nix diff --git a/flake.nix b/flake.nix index 440fd061..73b50174 100644 --- a/flake.nix +++ b/flake.nix @@ -40,7 +40,7 @@ osaka-vultr-01 = libx.mkHost { hostname = "osaka-vultr-01"; type = "small";}; nixos-vm-01 = libx.mkHost { hostname = "nixos-vm-01"; }; # Physical - framework-server = libx.mkHost { hostname = "framework-server"; /*desktop = "gnome"; gpu = "intel";*/ }; + framework-server = libx.mkHost { hostname = "framework-server"; desktop = "gnome"; gpu = "intel"; }; nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; desktop = "gnome"; gpu = "nvidia"; }; nixos-framework = libx.mkHost { hostname = "nixos-framework"; desktop = "hyprland"; gpu = "amd"; theme = "green"; }; nixos-rpi4-01 = libx.mkHost { hostname = "nixos-rpi4-01"; platform = "aarch64-linux"; }; diff --git a/nixos/hosts/framework-server/default.nix b/nixos/hosts/framework-server/default.nix index 42629c26..46848f5f 100644 --- a/nixos/hosts/framework-server/default.nix +++ b/nixos/hosts/framework-server/default.nix @@ -1,4 +1,4 @@ -{ inputs, config, lib, pkgs, modulesPath, desktop, username, ... }: { +{ inputs, config, lib, pkgs, modulesPath, desktop, username, desktop, ... }: { imports = [ # inputs.nixos-hardware.nixosModules.framework-13-inch-13th-gen-intel inputs.nixos-hardware.nixosModules.framework-13th-gen-intel @@ -10,7 +10,7 @@ ./ssh-luks.nix ./docker.nix ./wireguard.nix - ]; + ] ++ lib.optional (builtins.isString desktop) ./gnome-rdp.nix; # steam , etc nixpkgs.config.allowUnfree = false; diff --git a/nixos/hosts/framework-server/gnome-rdp.nix b/nixos/hosts/framework-server/gnome-rdp.nix new file mode 100644 index 00000000..80a69012 --- /dev/null +++ b/nixos/hosts/framework-server/gnome-rdp.nix @@ -0,0 +1,3 @@ +{ ... }: { + services.gnome.gnome-remote-desktop.enable = true; +} \ No newline at end of file