Flake for my NixOS devices
1{outputs, ...}: {
2 system = "x86_64-linux";
3 modules = [
4 (outputs.lib.applyRoles ["base" "latest-linux" "black-mesa-cache"])
5 ({
6 pkgs,
7 lib,
8 inputs,
9 edition,
10 config,
11 modulesPath,
12 ...
13 }: {
14 system.stateVersion = "25.05";
15 networking.hostName = "nixos-installer-bwc9876";
16
17 imports = [
18 "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
19 ];
20
21 services.kmscon = {
22 enable = true;
23 autologinUser = "bean";
24 fonts = [
25 {
26 name = "FiraMono Nerd Font Mono";
27 package = pkgs.nerd-fonts.fira-mono;
28 }
29 ];
30 };
31
32 boot = rec {
33 initrd.systemd.enable = false;
34 supportedFilesystems = {
35 btrfs = true;
36 reiserfs = lib.mkForce false;
37 vfat = true;
38 f2fs = true;
39 xfs = true;
40 ntfs = true;
41 cifs = true;
42 zfs = lib.mkForce false;
43 };
44 initrd.supportedFilesystems = supportedFilesystems;
45 };
46
47 environment.systemPackages = with pkgs; [
48 gptfdisk
49 ];
50 })
51 ];
52}