nixos-t2-iso: init

This commit is contained in:
kekrby 2022-08-25 18:45:47 +03:00
commit 18b206807a
6 changed files with 146 additions and 0 deletions

25
nix/t2-iso-gnome.nix Normal file
View file

@ -0,0 +1,25 @@
{ pkgs, lib, nixos-hardware, modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-graphical-gnome.nix"
"${modulesPath}/installer/cd-dvd/channel.nix"
nixos-hardware.nixosModules.apple-t2
];
# Audio works better with PipeWire
hardware.pulseaudio.enable = lib.mkForce false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa.enable = true;
};
# ZFS is broken and prevents building without this
nixpkgs.config.allowBroken = true;
environment.systemPackages = with pkgs; [
vim
];
}