working flake

This commit is contained in:
Theo Hahn committed 2026-09-20 14:25:56 +02:00
1 parent c4d1a0d8cb
commit 6741cf73c4
6 files changed
+72 -37

No files matched your search

+16 -16
View File
@@ -8,7 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
"${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/apple/t2"
# "${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/apple/t2"
];
# Use the systemd-boot EFI boot loader.
@@ -19,18 +19,23 @@
networking.hostName = "tnix"; # Define your hostname.
services.upower.enable = true;
hardware.firmware = [
(pkgs.stdenvNoCC.mkDerivation (final: {
name = "brcm-firmware";
src = "./firmware/brcm";
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/lib/firmware/brcm
cp -r ./. "$out/lib/firmware/brcm"
'';
}))
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# hardware.firmware = [
# (pkgs.stdenvNoCC.mkDerivation (final: {
# name = "brcm-firmware";
# src = "./firmware/brcm";
# phases = [ "installPhase" ];
# installPhase = ''
# mkdir -p $out/lib/firmware/brcm
# cp -r ./. "$out/lib/firmware/brcm"
# '';
# }))
# ];
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true;
@@ -105,11 +110,6 @@
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
system.copySystemConfiguration = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#