move niri config to home modules and enable fuzzel
This commit is contained in:
		
							parent
							
								
									3236adf976
								
							
						
					
					
						commit
						42d80c6983
					
				
					 5 changed files with 76 additions and 9 deletions
				
			
		| 
						 | 
					@ -13,6 +13,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  youthlic.programs = {
 | 
					  youthlic.programs = {
 | 
				
			||||||
    firefox.enable = true;
 | 
					    firefox.enable = true;
 | 
				
			||||||
 | 
					    fuzzel.enable = true;
 | 
				
			||||||
    helix.enable = true;
 | 
					    helix.enable = true;
 | 
				
			||||||
    gpg.enable = true;
 | 
					    gpg.enable = true;
 | 
				
			||||||
    git = {
 | 
					    git = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,12 +1,7 @@
 | 
				
			||||||
{ pkgs, ... }:
 | 
					{ ... }:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  programs.niri = {
 | 
					  youthlic.programs.niri = {
 | 
				
			||||||
    config = builtins.readFile ./config.kdl;
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    config = ./config.kdl;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  home.packages = with pkgs; [
 | 
					 | 
				
			||||||
    mako
 | 
					 | 
				
			||||||
    swaybg
 | 
					 | 
				
			||||||
    xwayland-satellite
 | 
					 | 
				
			||||||
    waybar
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,7 +14,9 @@
 | 
				
			||||||
      ./foot
 | 
					      ./foot
 | 
				
			||||||
      ./starship
 | 
					      ./starship
 | 
				
			||||||
      ./sops.nix
 | 
					      ./sops.nix
 | 
				
			||||||
 | 
					      ./fuzzel.nix
 | 
				
			||||||
      ./firefox.nix
 | 
					      ./firefox.nix
 | 
				
			||||||
 | 
					      ./niri.nix
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  options = {
 | 
					  options = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										32
									
								
								home/modules/fuzzel.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								home/modules/fuzzel.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,32 @@
 | 
				
			||||||
 | 
					{ config, lib, ... }:
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					  cfg = config.youthlic.programs.fuzzel;
 | 
				
			||||||
 | 
					in
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  options = {
 | 
				
			||||||
 | 
					    youthlic.programs.fuzzel = {
 | 
				
			||||||
 | 
					      enable = lib.mkEnableOption "fuzzel";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					  config = {
 | 
				
			||||||
 | 
					    programs.fuzzel = lib.mkIf cfg.enable {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					      settings = {
 | 
				
			||||||
 | 
					        main = {
 | 
				
			||||||
 | 
					          font = "LXGW WenKai:size=11";
 | 
				
			||||||
 | 
					          prompt = "'λ '";
 | 
				
			||||||
 | 
					          dpi-aware = true;
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					        colors = {
 | 
				
			||||||
 | 
					          background = "282a36dd";
 | 
				
			||||||
 | 
					          text = "f8f8f2ff";
 | 
				
			||||||
 | 
					          match = "8be9fdff";
 | 
				
			||||||
 | 
					          selection-match = "8be9fdff";
 | 
				
			||||||
 | 
					          selection = "44475add";
 | 
				
			||||||
 | 
					          selection-text = "f8f8f2ff";
 | 
				
			||||||
 | 
					          border = "bd93f9ff";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										37
									
								
								home/modules/niri.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								home/modules/niri.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,37 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  config,
 | 
				
			||||||
 | 
					  lib,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					  cfg = config.youthlic.programs.niri;
 | 
				
			||||||
 | 
					in
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  options = {
 | 
				
			||||||
 | 
					    youthlic.programs.niri = {
 | 
				
			||||||
 | 
					      enable = lib.mkEnableOption "niri";
 | 
				
			||||||
 | 
					      config = lib.mkOption {
 | 
				
			||||||
 | 
					        type = lib.types.path;
 | 
				
			||||||
 | 
					        example = ./config.kdl;
 | 
				
			||||||
 | 
					        description = ''
 | 
				
			||||||
 | 
					          the pach to config.kdl
 | 
				
			||||||
 | 
					        '';
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					  config = lib.mkIf cfg.enable {
 | 
				
			||||||
 | 
					    home.packages = with pkgs; [
 | 
				
			||||||
 | 
					      mako
 | 
				
			||||||
 | 
					      swaybg
 | 
				
			||||||
 | 
					      xwayland-satellite
 | 
				
			||||||
 | 
					      waybar
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					    youthlic.programs = {
 | 
				
			||||||
 | 
					      fuzzel.enable = true;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					    programs.niri = {
 | 
				
			||||||
 | 
					      config = builtins.readFile cfg.config;
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue