From 44bc444b282c8b7167cfef541b75a5c08c217bcd Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 22 May 2025 17:37:44 -0700 Subject: [PATCH] enable audio & bt --- flake.nix | 3 ++ systems/NObangers.nix | 68 ++++++++++++++++++++++++++++++------------- 2 files changed, 50 insertions(+), 21 deletions(-) diff --git a/flake.nix b/flake.nix index da88eab..3035701 100644 --- a/flake.nix +++ b/flake.nix @@ -132,6 +132,9 @@ nixos-hardware.nixosModules.raspberry-pi-4 ./systems/BASED.nix ./systems/NObangers.nix + nixos-cosmic.nixosModules.default + ./extras/cosmic.nix + ./extras/uwuraid.nix ]; }; NOserver-minecraft = nixpkgs.lib.nixosSystem { diff --git a/systems/NObangers.nix b/systems/NObangers.nix index b5c9a71..de6187a 100644 --- a/systems/NObangers.nix +++ b/systems/NObangers.nix @@ -1,29 +1,55 @@ { - config, - pkgs, - lib, - ... + config, + pkgs, + lib, + ... }: { - environment.systemPackages = with pkgs; []; - programs.partition-manager.enable = false; + environment.systemPackages = with pkgs; [ + raspberrypi-eeprom + ]; + programs.partition-manager.enable = false; - services.printing.enable = false; - i18n.inputMethod = {}; + services.printing.enable = false; + i18n.inputMethod = {}; - services.xserver.enable = false; - services.desktopManager.plasma6.enable = false; + services.xserver.enable = false; + services.desktopManager.plasma6.enable = false; - boot.loader.systemd-boot.enable = false; - boot.loader.efi.canTouchEfiVariables = false; - - fileSystems = { - "/" = { - device = "/dev/disk/by-label/NIXOS_SD"; - fsType = "ext4"; - options = ["noatime"]; + hardware.raspberry-pi."4" = { + bluetooth.enable = true; + audio.enable = true; }; - }; - nixpkgs.hostPlatform = "aarch64-linux"; - system.stateVersion = "23.11"; + boot.loader.systemd-boot.enable = false; + boot.loader.efi.canTouchEfiVariables = false; + + fileSystems = { + "/" = { + device = "/dev/disk/by-label/NIXOS_SD"; + fsType = "ext4"; + options = ["noatime"]; + }; + }; + + nix.buildMachines = [ + { + hostName = "nolaptop"; + systems = ["x86_64-linux" "i686-linux"]; + supportedFeatures = [ + "benchmark" + "big-parallel" + "gccarch-znver4" + "kvm" + "nixos-test" + ]; + } + ]; + nix.extraOptions = '' + builders-use-substitutes = true + ''; + nix.distributedBuilds = true; + + networking.hostName = "NObangers"; + nixpkgs.hostPlatform = "aarch64-linux"; + system.stateVersion = "23.11"; }