From 091a9e248523f4486918d14f3c96aa6b5025669b Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sun, 2 Jun 2024 14:26:51 -0500 Subject: [PATCH 1/3] Thablet bluetooth --- nixos/thablet.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/thablet.nix b/nixos/thablet.nix index db47e58..b861f05 100644 --- a/nixos/thablet.nix +++ b/nixos/thablet.nix @@ -70,5 +70,10 @@ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + }; + system.stateVersion = "23.11"; } From 69c8c4777bd3da2ef3bab75654ef4582a84ad696 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 4 Jun 2024 12:02:27 -0500 Subject: [PATCH 2/3] Dragon for music --- modules/nixos/music-production.nix | 11 +++-------- nixos/dragon.nix | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/nixos/music-production.nix b/modules/nixos/music-production.nix index afb746f..a1a8224 100644 --- a/modules/nixos/music-production.nix +++ b/modules/nixos/music-production.nix @@ -3,15 +3,10 @@ # environment? imports = [ { - # DAW environment.systemPackages = with pkgs; [ - ardour - ]; - } - { - # synths/VSTs - environment.systemPackages = with pkgs; [ - helm + helvum # pipewire graph/patchbay GUI + ardour # DAW + helm # synth ]; } ]; diff --git a/nixos/dragon.nix b/nixos/dragon.nix index 2b35b72..e8df000 100644 --- a/nixos/dragon.nix +++ b/nixos/dragon.nix @@ -16,6 +16,7 @@ inputs.hardware.nixosModules.common-cpu-amd inputs.hardware.nixosModules.common-pc-ssd outputs.nixosModules.pipewire-low-latency + outputs.nixosModules.music-production desktop-usage podman From ca023db81f9796a724ddd7272b5afbf3ecfd6cd0 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 6 Jun 2024 10:53:21 -0500 Subject: [PATCH 3/3] GTK, appimage binfmt, and bluetooth --- modules/home-manager/linux-desktop.nix | 20 +++++++------------ modules/nixos/user-installed-applications.nix | 12 +---------- nixos/dragon.nix | 2 +- 3 files changed, 9 insertions(+), 25 deletions(-) diff --git a/modules/home-manager/linux-desktop.nix b/modules/home-manager/linux-desktop.nix index c6e352b..ee00f78 100644 --- a/modules/home-manager/linux-desktop.nix +++ b/modules/home-manager/linux-desktop.nix @@ -10,19 +10,13 @@ firefox ]; - gtk = { - enable = true; - # Currently failing: https://github.com/NixOS/nixpkgs/issues/298043 - # Overlay from https://github.com/NixOS/nixpkgs/issues/298043#issuecomment-2015319496 - # Fix on master but not yet in unstable https://github.com/NixOS/nixpkgs/pull/297683 - theme = { - name = "Catppuccin-Mocha-Compact-Sapphire-Dark"; - package = pkgs.catppuccin-gtk.override { - accents = ["sapphire"]; - size = "compact"; - tweaks = ["rimless"]; - variant = "mocha"; - }; + gtk.theme = { + name = "Catppuccin-Mocha-Compact-Sapphire-Dark"; + package = pkgs.catppuccin-gtk.override { + accents = ["sapphire"]; + size = "compact"; + tweaks = ["rimless"]; + variant = "mocha"; }; }; diff --git a/modules/nixos/user-installed-applications.nix b/modules/nixos/user-installed-applications.nix index cc64817..b921172 100644 --- a/modules/nixos/user-installed-applications.nix +++ b/modules/nixos/user-installed-applications.nix @@ -1,14 +1,4 @@ {pkgs, ...}: { - # enable flatpaks services.flatpak.enable = true; - - # enable appimages - boot.binfmt.registrations.appimage = { - wrapInterpreterInShell = false; - interpreter = "${pkgs.appimage-run}/bin/appimage-run"; - recognitionType = "magic"; - offset = 0; - mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff''; - magicOrExtension = ''\x7fELF....AI\x02''; - }; + programs.appimage.binfmt = true; } diff --git a/nixos/dragon.nix b/nixos/dragon.nix index e8df000..ad94f57 100644 --- a/nixos/dragon.nix +++ b/nixos/dragon.nix @@ -144,7 +144,7 @@ hardware.bluetooth = { enable = true; - powerOnBoot = true; + # powerOnBoot = true; # this is the default }; powerManagement.cpuFreqGovernor = lib.mkDefault "performance";