refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
		
							parent
							
								
									8f67be9e68
								
							
						
					
					
						commit
						5603001d65
					
				
					 230 changed files with 380 additions and 717 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
{ config, lib, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  features = config.systemModules.host.hardware.features;
 | 
			
		||||
  inherit (lib) mkIf;
 | 
			
		||||
  inherit (builtins) elem;
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  config = mkIf (elem "bluetooth" features) {
 | 
			
		||||
    hardware.bluetooth = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      package = pkgs.bluez5-experimental;
 | 
			
		||||
    };
 | 
			
		||||
  
 | 
			
		||||
    environment.systemPackages = with pkgs; [
 | 
			
		||||
      live-buds-cli
 | 
			
		||||
  	  bluetuith
 | 
			
		||||
  	];
 | 
			
		||||
 | 
			
		||||
    # https://github.com/NixOS/nixpkgs/issues/114222
 | 
			
		||||
    systemd.user.services.telephony_client.enable = false;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue