diff --git a/nixos/boxes/foureighty.nix b/nixos/boxes/foureighty.nix index d2175f6e..44908f90 100644 --- a/nixos/boxes/foureighty.nix +++ b/nixos/boxes/foureighty.nix @@ -4,7 +4,15 @@ networking.hostName = "foureighty"; boot = { + kernelPackages = pkgs.linuxPackages_latest; + extraModulePackages = with config.boot.kernelPackages; [ wireguard ]; initrd.kernelModules = [ "i915" ]; + initrd.availableKernelModules = [ + "aes_x86_64" + "crypto_simd" + "aesni_intel" + "cryptd" + ]; kernelParams = [ "i915.enable_fbc=1" "i915.enable_psr=2" @@ -65,6 +73,12 @@ ]; }; + virtualisation.virtualbox.host = { + enable = true; + enableExtensionPack = true; + enableHardening = false; #needed for 3D acceleration + }; + imports = [ /etc/nixos/hardware-configuration.nix ../boot.nix diff --git a/nixos/syncthing.nix b/nixos/syncthing.nix index ae314ff6..a6641d88 100644 --- a/nixos/syncthing.nix +++ b/nixos/syncthing.nix @@ -1,9 +1,20 @@ { config, pkgs, ... }: +let + unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz; +in { + nixpkgs.config = { + packageOverrides = pkgs: { + unstable = import unstableTarball { + config = config.nixpkgs.config; + }; + }; + }; services.syncthing = { enable = true; user = "cyryl"; dataDir = "/home/cyryl/.syncthing"; openDefaultPorts = true; + package = pkgs.unstable.syncthing; }; -} \ No newline at end of file +}