mirror of
				https://github.com/ItsDrike/nixdots
				synced 2025-10-31 22:06:37 +00:00 
			
		
		
		
	Compare commits
	
		
			4 commits
		
	
	
		
			a38498eef2
			...
			ccf9ececa2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ccf9ececa2 | |||
| 64bafa5035 | |||
| 8ee1bfd5e3 | |||
| 5cace9f1c0 | 
					 8 changed files with 28 additions and 9 deletions
				
			
		|  | @ -16,4 +16,5 @@ My NixOS and home-manager flake | |||
| This configuration was massively inspired by the following amazing projects: | ||||
| 
 | ||||
| - <https://git.notashelf.dev/NotAShelf/nyx> (major inspiration) | ||||
| - <https://github.com/spikespaz/dotfiles> | ||||
| - <https://git.jacekpoz.pl/jacekpoz/niksos> | ||||
|  |  | |||
|  | @ -85,6 +85,7 @@ | |||
|         # Window groups | ||||
|         # | ||||
|         "SUPER, G, togglegroup," | ||||
|         "SUPER_SHIFT, G, lockactivegroup, toggle" | ||||
|         "ALT, tab, changegroupactive, f" | ||||
|         "ALT, grave, changegroupactive, b" | ||||
| 
 | ||||
|  |  | |||
|  | @ -99,7 +99,7 @@ | |||
| 
 | ||||
|     decoration = { | ||||
|       dim_inactive = false; # disabled for now | ||||
|       dim_strength = 0.05; | ||||
|       dim_strength = 0.02; | ||||
|       dim_special = 0.2; | ||||
|       inactive_opacity = 0.9; | ||||
|     }; | ||||
|  |  | |||
|  | @ -30,7 +30,6 @@ | |||
|       username = "itsdrike"; | ||||
| 
 | ||||
|       sound.enable = true; | ||||
|       bluetooth.enable = true; | ||||
| 
 | ||||
|       impermanence = { | ||||
|         root = { | ||||
|  | @ -61,6 +60,7 @@ | |||
|       cpu.type = "amd"; | ||||
|       gpu.type = "hybrid-nvidia"; | ||||
|       hasTPM = true; | ||||
|       bluetooth.enable = true; | ||||
|     }; | ||||
| 
 | ||||
|     security = { | ||||
|  |  | |||
|  | @ -35,7 +35,6 @@ | |||
|       username = "itsdrike"; | ||||
| 
 | ||||
|       sound.enable = true; | ||||
|       bluetooth.enable = true; | ||||
| 
 | ||||
|       impermanence = { | ||||
|         root = { | ||||
|  | @ -115,6 +114,7 @@ | |||
|       cpu.type = "amd"; | ||||
|       gpu.type = "amd"; | ||||
|       hasTPM = true; | ||||
|       bluetooth.enable = true; | ||||
|     }; | ||||
| 
 | ||||
|     security = { | ||||
|  |  | |||
|  | @ -1,4 +1,5 @@ | |||
| { lib, ... }: with lib; let | ||||
| { lib, ... }: let | ||||
|   inherit (lib) mkOption mkEnableOption types; | ||||
| in | ||||
| { | ||||
|   options.myOptions.device = { | ||||
|  | @ -34,9 +35,25 @@ in | |||
|     }; | ||||
| 
 | ||||
|     hasTPM = mkOption { | ||||
|       type = lib.types.bool; | ||||
|       type = types.bool; | ||||
|       default = false; | ||||
|       description = "Does this device have a TPM (Trusted Platform Module)?"; | ||||
|     }; | ||||
| 
 | ||||
|     bluetooth = { | ||||
|       enable = mkEnableOption "bluetooth modules, drivers and configuration program(s)"; | ||||
|       powerOnBoot = mkOption { | ||||
|         type = types.bool; | ||||
|         default = false; | ||||
|         description = '' | ||||
|           Should bluetooth be powered on automatically during boot? | ||||
| 
 | ||||
|           This will worsen the battery life and is not recommended. Instead, you can | ||||
|           always turn bluetooth on manually once booted, when you need it. Unless you | ||||
|           have constant need for bluetooth / have some devices to connect to automatically | ||||
|           you, leave this off. | ||||
|         ''; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -6,14 +6,14 @@ | |||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
| 
 | ||||
|   sys = config.myOptions.system.bluetooth; | ||||
|   cfg = config.myOptions.device.bluetooth; | ||||
| in { | ||||
|   config = mkIf sys.enable { | ||||
|   config = mkIf cfg.enable { | ||||
|     hardware.bluetooth = { | ||||
|       enable = true; | ||||
|       package = pkgs.bluez5-experimental; | ||||
|       powerOnBoot = cfg.powerOnBoot;  | ||||
|       #hsphfpd.enable = true; | ||||
|       powerOnBoot = true; | ||||
|       disabledPlugins = ["sap"]; | ||||
|       settings = { | ||||
|         General = { | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ | |||
|   inherit (lib.generators) toLua; | ||||
| 
 | ||||
|   cfg = config.myOptions.system.sound; | ||||
|   cfgBluetooth = config.myOptions.system.bluetooth; | ||||
|   cfgBluetooth = config.myOptions.device.bluetooth; | ||||
| in { | ||||
|   config = mkIf cfg.enable { | ||||
|     # in case pipewire was force disabled for whatever reason, fall | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue