mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	refactor(module): clean up some module inputs
feat(module): add use-lix option to nix module feat(module): update fish config for catppuccin
This commit is contained in:
		
							parent
							
								
									3f767068d2
								
							
						
					
					
						commit
						fde4abd59d
					
				
					 16 changed files with 173 additions and 115 deletions
				
			
		| 
						 | 
				
			
			@ -2,21 +2,17 @@
 | 
			
		|||
  lib,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  inputs,
 | 
			
		||||
 | 
			
		||||
  namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
 | 
			
		||||
  system, # The system architecture for this host (eg. `x86_64-linux`).
 | 
			
		||||
  target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
 | 
			
		||||
  format, # A normalized name for the system target (eg. `iso`).
 | 
			
		||||
  virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
 | 
			
		||||
  systems, # An attribute map of your defined hosts.
 | 
			
		||||
 | 
			
		||||
  namespace,
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}: with lib; with lib.${namespace};
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.${namespace}.common.nix;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.common.nix = { enable = mkEnableOption "nix"; };
 | 
			
		||||
  options.${namespace}.common.nix = {
 | 
			
		||||
    enable = mkEnableOption "Overwrite the default Nix configuration.";
 | 
			
		||||
    use-lix = mkEnableOption "Enable Lix as an alternative to CppNix.";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    nix = {
 | 
			
		||||
| 
						 | 
				
			
			@ -35,6 +31,8 @@ in {
 | 
			
		|||
        dates = "daily";
 | 
			
		||||
        options = "--delete-older-than 3d";
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      package = mkIf cfg.use-lix pkgs.lix; # Enable LIX
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue