OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
HASH      05274f898bb3
DATE      2024-11-22
SUBJECT   nixos: enable bluetooth module
FILES     5 CHANGED
HASH      05274f898bb3
DATE      2024-11-22
SUBJECT   nixos: enable bluetooth module
FILES     5 CHANGED
 

diff --git a/modules/home/base/home-manager.nix b/modules/home/base/home-manager.n
ix
index cfbf6eb..45d90c6 100644
--- a/modules/home/base/home-manager.nix
+++ b/modules/home/base/home-manager.nix
@@ -4,7 +4,6 @@
   osConfig,
   ...
 }: let
-  inherit (lib) mkDefault;
   inherit (osConfig.ooknet.host) admin;
 in {
   programs.home-manager.enable = true;
@@ -13,7 +12,7 @@ in {
   home = {
     username = admin.name;
     homeDirectory = "/home/${config.home.username}";
-    stateVersion = mkDefault "22.05";
+    stateVersion = "22.05";
     sessionPath = ["${config.home.homeDirectory}/.local/bin"];
   };
 

diff --git a/modules/home/base/home-manager.
nix b/modules/home/base/home-manager.nix
index cfbf6eb..45d90c6 100644
--- a/modules/home/base/home-manager.nix
+++ b/modules/home/base/home-manager.nix
@@ -4,7 +4,6 @@
   osConfig,
   ...
 }: let
-  inherit (lib) mkDefault;
   inherit (osConfig.ooknet.host) admin;
 in {
   programs.home-manager.enable = true;
@@ -13,7 +12,7 @@ in {
   home = {
     username = admin.name;
     homeDirectory = "/home/${config.home.us
ername}";
-    stateVersion = mkDefault "22.05";
+    stateVersion = "22.05";
     sessionPath = ["${config.home.homeDirec
tory}/.local/bin"];
   };
 
 

diff --git a/modules/home/workstation/tools/default.nix b/modules/home/workstation
/tools/default.nix
index 7a1545e..91c44b2 100644
--- a/modules/home/workstation/tools/default.nix
+++ b/modules/home/workstation/tools/default.nix
@@ -1,6 +1,7 @@
 {
   imports = [
     ./ookpower.nix
+    ./live-buds-cli.nix
     ./virt-manager.nix
     ./1password.nix
     ./ookvolume.nix

diff --git a/modules/home/workstation/tools/
default.nix b/modules/home/workstation/tools
/default.nix
index 7a1545e..91c44b2 100644
--- a/modules/home/workstation/tools/default
.nix
+++ b/modules/home/workstation/tools/default
.nix
@@ -1,6 +1,7 @@
 {
   imports = [
     ./ookpower.nix
+    ./live-buds-cli.nix
     ./virt-manager.nix
     ./1password.nix
     ./ookvolume.nix
 

diff --git a/modules/home/workstation/tools/live-buds-cli.nix b/modules/home/works
tation/tools/live-buds-cli.nix
new file mode 100644
index 0000000..03f5a4c
--- /dev/null
+++ b/modules/home/workstation/tools/live-buds-cli.nix
@@ -0,0 +1,13 @@
+{
+  osConfig,
+  self',
+  lib,
+  ...
+}: let
+  inherit (lib) mkIf elem;
+  inherit (osConfig.ooknet.hardware) features;
+in {
+  config = mkIf (elem "bluetooth" features) {
+    home.packages = [self'.packages.live-buds-cli];
+  };
+}

diff --git a/modules/home/workstation/tools/
live-buds-cli.nix b/modules/home/workstation
/tools/live-buds-cli.nix
new file mode 100644
index 0000000..03f5a4c
--- /dev/null
+++ b/modules/home/workstation/tools/live-bu
ds-cli.nix
@@ -0,0 +1,13 @@
+{
+  osConfig,
+  self',
+  lib,
+  ...
+}: let
+  inherit (lib) mkIf elem;
+  inherit (osConfig.ooknet.hardware) featur
es;
+in {
+  config = mkIf (elem "bluetooth" features)
 {
+    home.packages = [self'.packages.live-bu
ds-cli];
+  };
+}
 

diff --git a/modules/nixos/hardware/features/bluetooth.nix b/modules/nixos/hardwar
e/features/bluetooth.nix
index 9ce0c5c..821f60f 100644
--- a/modules/nixos/hardware/features/bluetooth.nix
+++ b/modules/nixos/hardware/features/bluetooth.nix
@@ -2,7 +2,6 @@
   config,
   lib,
   pkgs,
-  self,
   ...
 }: let
   inherit (lib) mkIf;
@@ -16,7 +15,6 @@ in {
     };
 
     environment.systemPackages = attrValues {
-      #inherit (self.packages.${pkgs.system}) live-buds-cli;
       inherit (pkgs) bluetuith;
     };
 

diff --git a/modules/nixos/hardware/features
/bluetooth.nix b/modules/nixos/hardware/feat
ures/bluetooth.nix
index 9ce0c5c..821f60f 100644
--- a/modules/nixos/hardware/features/blueto
oth.nix
+++ b/modules/nixos/hardware/features/blueto
oth.nix
@@ -2,7 +2,6 @@
   config,
   lib,
   pkgs,
-  self,
   ...
 }: let
   inherit (lib) mkIf;
@@ -16,7 +15,6 @@ in {
     };
 
     environment.systemPackages = attrValues
 {
-      #inherit (self.packages.${pkgs.system
}) live-buds-cli;
       inherit (pkgs) bluetuith;
     };
 
 

diff --git a/modules/nixos/hardware/features/default.nix b/modules/nixos/hardware/
features/default.nix
index 8704874..882edfd 100644
--- a/modules/nixos/hardware/features/default.nix
+++ b/modules/nixos/hardware/features/default.nix
@@ -6,6 +6,6 @@
     ./battery.nix
     ./backlight.nix
     ./ssd.nix
-    #    ./bluetooth.nix
+    ./bluetooth.nix
   ];
 }

diff --git a/modules/nixos/hardware/features
/default.nix b/modules/nixos/hardware/featur
es/default.nix
index 8704874..882edfd 100644
--- a/modules/nixos/hardware/features/defaul
t.nix
+++ b/modules/nixos/hardware/features/defaul
t.nix
@@ -6,6 +6,6 @@
     ./battery.nix
     ./backlight.nix
     ./ssd.nix
-    #    ./bluetooth.nix
+    ./bluetooth.nix
   ];
 }
 
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET