summaryrefslogtreecommitdiff
path: root/hosts/hyper-v
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/hyper-v')
-rw-r--r--hosts/hyper-v/configuration.nix22
-rw-r--r--hosts/hyper-v/hardware-configuration.nix40
2 files changed, 40 insertions, 22 deletions
diff --git a/hosts/hyper-v/configuration.nix b/hosts/hyper-v/configuration.nix
index 8da08c2..77da89b 100644
--- a/hosts/hyper-v/configuration.nix
+++ b/hosts/hyper-v/configuration.nix
@@ -1,18 +1,24 @@
-{config, lib, pkgs, inputs, ...}:
+{
+ config,
+ lib,
+ pkgs,
+ inputs,
+ ...
+}:
{
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ../../modules/common.nix
- ];
+ imports = [
+ # Include the results of the hardware scan.
+ ./hardware-configuration.nix
+ ../../modules/common.nix
+ ];
networking.hostName = "hyper-v";
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
-
+
# Hyper-V setup
virtualisation.hypervGuest.enable = true;
services.xrdp.enable = true;
@@ -29,7 +35,7 @@
--replace-fail "#vmconnect=true" "vmconnect=true" \
--replace-fail "security_layer=negotiate" "security_layer=rdp" \
--replace-fail "crypt_level=high" "crypt_level=none" \
- '';
+ '';
services.xserver.displayManager.lightdm.enable = false;
diff --git a/hosts/hyper-v/hardware-configuration.nix b/hosts/hyper-v/hardware-configuration.nix
index 0417079..4a2d311 100644
--- a/hosts/hyper-v/hardware-configuration.nix
+++ b/hosts/hyper-v/hardware-configuration.nix
@@ -1,30 +1,42 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
-{ config, lib, pkgs, modulesPath, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ modulesPath,
+ ...
+}:
{
imports = [ ];
- boot.initrd.availableKernelModules = [ "sd_mod" "sr_mod" ];
+ boot.initrd.availableKernelModules = [
+ "sd_mod"
+ "sr_mod"
+ ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/11857814-2a7a-4aaa-82bd-7ecea40117d3";
- fsType = "ext4";
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/1FB1-AF5C";
- fsType = "vfat";
- options = [ "fmask=0077" "dmask=0077" ];
- };
+ fileSystems."/" = {
+ device = "/dev/disk/by-uuid/11857814-2a7a-4aaa-82bd-7ecea40117d3";
+ fsType = "ext4";
+ };
- swapDevices =
- [ { device = "/dev/disk/by-uuid/5cfd31ff-439c-4829-b575-92ea76bec3c4"; }
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-uuid/1FB1-AF5C";
+ fsType = "vfat";
+ options = [
+ "fmask=0077"
+ "dmask=0077"
];
+ };
+
+ swapDevices = [
+ { device = "/dev/disk/by-uuid/5cfd31ff-439c-4829-b575-92ea76bec3c4"; }
+ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.hypervGuest.enable = true;