From 4b23384a1f53f7a36c949116856bf997898805fd Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 19 Jul 2021 20:24:55 -0600 Subject: [PATCH] [NixOS] Add flake for adele --- nixos/flake.nix | 4 ++++ nixos/machines/adele.nix | 23 ++++++++++++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/nixos/flake.nix b/nixos/flake.nix index 117cbd64..48978cfc 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -62,6 +62,10 @@ system = "x86_64-linux"; modules = [ forAll ./machines/ryzen-shine.nix ]; }; + adele = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ forAll ./machines/adele.nix ]; + }; biskcomp = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ forAll piHardware ./machines/biskcomp.nix ]; diff --git a/nixos/machines/adele.nix b/nixos/machines/adele.nix index a0ebb77b..cbb75932 100644 --- a/nixos/machines/adele.nix +++ b/nixos/machines/adele.nix @@ -4,15 +4,26 @@ { config, lib, pkgs, ... }: { - imports = - [ - ../base.nix - ]; + imports = [ + ../full.nix + ../base.nix + ]; - system.stateVersion = "20.03"; + nix = { + package = pkgs.nixUnstable; + extraOptions = '' + experimental-features = nix-command flakes ca-references + ''; + }; + + hardware.enableRedistributableFirmware = true; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.kernelPackages = pkgs.linuxPackages_latest; + + + hardware.opengl.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ]; + hardware.opengl.extraPackages32 = [ pkgs.linuxPackages.nvidia_x11.lib32 ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -45,4 +56,6 @@ latitude = 37.8104601; longitude = -122.2572529; }; + + system.stateVersion = "20.03"; }