Add more software

This commit is contained in:
Cyryl Płotnicki 2019-07-06 16:42:32 +01:00
parent ade1f149b7
commit 9f9ee7996d
2 changed files with 26 additions and 1 deletions

View file

@ -4,7 +4,15 @@
networking.hostName = "foureighty"; networking.hostName = "foureighty";
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = with config.boot.kernelPackages; [ wireguard ];
initrd.kernelModules = [ "i915" ]; initrd.kernelModules = [ "i915" ];
initrd.availableKernelModules = [
"aes_x86_64"
"crypto_simd"
"aesni_intel"
"cryptd"
];
kernelParams = [ kernelParams = [
"i915.enable_fbc=1" "i915.enable_fbc=1"
"i915.enable_psr=2" "i915.enable_psr=2"
@ -65,6 +73,12 @@
]; ];
}; };
virtualisation.virtualbox.host = {
enable = true;
enableExtensionPack = true;
enableHardening = false; #needed for 3D acceleration
};
imports = [ imports = [
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
../boot.nix ../boot.nix

View file

@ -1,9 +1,20 @@
{ config, pkgs, ... }: { 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 = { services.syncthing = {
enable = true; enable = true;
user = "cyryl"; user = "cyryl";
dataDir = "/home/cyryl/.syncthing"; dataDir = "/home/cyryl/.syncthing";
openDefaultPorts = true; openDefaultPorts = true;
package = pkgs.unstable.syncthing;
}; };
} }