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
];
}

21
nix/t2-iso-minimal.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, nixos-hardware, modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
"${modulesPath}/installer/cd-dvd/channel.nix"
nixos-hardware.nixosModules.apple-t2
];
# ZFS is broken and prevents building without this
nixpkgs.config.allowBroken = true;
# NetworkManager is preferred because wpa_supplicant does not work well (though wpa_cli seems to work fine for some reason)
# wpa_supplicant is enabled by a module imported by the installation CD module so it is turned off so that it does not conflict with NetworkManager
networking.networkmanager.enable = true;
networking.wireless.enable = false;
environment.systemPackages = with pkgs; [
vim
];
}