hyprpaper: init
This commit is contained in:
		
							parent
							
								
									2462f09e9d
								
							
						
					
					
						commit
						3233f1689a
					
				
					 5 changed files with 46 additions and 1 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 3.7 MiB  | 
							
								
								
									
										42
									
								
								modules/nixos/desktop/addons/hyprpaper/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								modules/nixos/desktop/addons/hyprpaper/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,42 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  inputs,
 | 
			
		||||
  lib,
 | 
			
		||||
  namespace,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  system,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkIf mkEnableOption;
 | 
			
		||||
 | 
			
		||||
  # hyprpaper-package = inputs.hyprpaper.packages.${system}.hyprpaper;
 | 
			
		||||
 | 
			
		||||
  cfg = config.${namespace}.desktop.addons.hyprpaper;
 | 
			
		||||
 | 
			
		||||
  username = config.${namespace}.user.name;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  options.${namespace}.desktop.addons.hyprpaper = {
 | 
			
		||||
    enable = mkEnableOption "Enable Hyprpaper";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    snowfallorg.users.${username}.home.config = {
 | 
			
		||||
      home.file = {
 | 
			
		||||
        # https://www.reddit.com/r/WidescreenWallpaper/comments/13hib3t/purple_firewatch_3840x1620/
 | 
			
		||||
        "Pictures/firewatch.jpg".source = ./firewatch.jpg;
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      services.hyprpaper = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        settings = {
 | 
			
		||||
          preload = [
 | 
			
		||||
            "/home/${username}/Pictures/firewatch.jpg"
 | 
			
		||||
          ];
 | 
			
		||||
          wallpaper = "monitor DP-2, /home/${username}/Pictures/firewatch.jpg";
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								modules/nixos/desktop/addons/hyprpaper/firewatch.jpg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								modules/nixos/desktop/addons/hyprpaper/firewatch.jpg
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 1.1 MiB  | 
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue