From d5b3261f402519c0bab56c33d8230525179650ff Mon Sep 17 00:00:00 2001 From: harry Date: Sun, 8 Sep 2024 10:52:16 +0200 Subject: [PATCH] added goober --- features/client/sway.nix | 0 features/isos/goober.nix | 52 ++++++++++++++++++++++++++++++++++++++++ flake.nix | 8 +++++++ 3 files changed, 60 insertions(+) create mode 100644 features/client/sway.nix create mode 100644 features/isos/goober.nix diff --git a/features/client/sway.nix b/features/client/sway.nix new file mode 100644 index 0000000..e69de29 diff --git a/features/isos/goober.nix b/features/isos/goober.nix new file mode 100644 index 0000000..d69f403 --- /dev/null +++ b/features/isos/goober.nix @@ -0,0 +1,52 @@ +{ + pkgs, + modulesPath, + lib, + ... +}: +{ + imports = [ + "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" + + # Provide an initial copy of the NixOS channel so that the user + # doesn't need to run "nix-channel --update" first. + "${modulesPath}/installer/cd-dvd/channel.nix" + ]; + + # use the latest Linux kernel + boot.kernelPackages = pkgs.linuxPackages_latest; + + # Needed for https://github.com/NixOS/nixpkgs/issues/58959 + boot.supportedFilesystems = lib.mkForce [ + "btrfs" + "reiserfs" + "vfat" + "f2fs" + "xfs" + "ntfs" + "cifs" + ]; + + boot.blacklistedKernelModules = [ + "b43" + "b43legacy" + "ssb" + "bcma" + "bcm43xx" + "brcm80211" + "brcmfmac" + "brcmsmac" + "bcma" + ]; + + boot.extraModprobeConfig = '' + options cfg80211 cfg80211_disable_40mhz_24ghz=Y + ''; + + environment.systemPackages = with pkgs; [ + # Add your own packages here + broadcom_sta + neovim + + ]; +} diff --git a/flake.nix b/flake.nix index 817e05f..5ca5400 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,14 @@ ./hosts/labouse/configuration.nix ]; }; + + goober = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./features/isos/goober.nix + ]; + }; }; + }; }