refactor templates

This commit is contained in:
Vivian 2023-01-07 12:52:42 +01:00
parent bcc1aaff1f
commit 576b6963e3
6 changed files with 65 additions and 21 deletions

15
nixos/templates/iso.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, modulesPath, lib, ... }: {
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
];
# use the latest Linux kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
environment.systemPackages = with pkgs; [
git
];
# Needed for https://github.com/NixOS/nixpkgs/issues/58959
boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
}