[NixOS] Add flake for adele

This commit is contained in:
Ivan Malison 2021-07-19 20:24:55 -06:00
parent 4e16364e40
commit 4b23384a1f
2 changed files with 22 additions and 5 deletions

View File

@ -62,6 +62,10 @@
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ forAll ./machines/ryzen-shine.nix ]; modules = [ forAll ./machines/ryzen-shine.nix ];
}; };
adele = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ forAll ./machines/adele.nix ];
};
biskcomp = nixpkgs.lib.nixosSystem { biskcomp = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ forAll piHardware ./machines/biskcomp.nix ]; modules = [ forAll piHardware ./machines/biskcomp.nix ];

View File

@ -4,15 +4,26 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = imports = [
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ../full.nix
../base.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.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.kernelPackages = pkgs.linuxPackages_latest; 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.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
@ -45,4 +56,6 @@
latitude = 37.8104601; latitude = 37.8104601;
longitude = -122.2572529; longitude = -122.2572529;
}; };
system.stateVersion = "20.03";
} }