home/natto: split wayland.nix
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -1,8 +1,4 @@
 | 
			
		||||
{ config, ... }:
 | 
			
		||||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  programs = {
 | 
			
		||||
    home-manager.enable = true;
 | 
			
		||||
    password-store.enable = true;
 | 
			
		||||
    direnv.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
  programs.direnv.enable = true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
{ config, pkgs, inputs, lib, ... }:
 | 
			
		||||
{ pkgs, inputs, ... }:
 | 
			
		||||
let
 | 
			
		||||
  emacs = pkgs.emacs-git-pgtk;
 | 
			
		||||
  configFile = ./config/emacs/config.org;
 | 
			
		||||
 
 | 
			
		||||
@@ -12,9 +12,6 @@
 | 
			
		||||
    ./browser.nix
 | 
			
		||||
    ./pdf.nix
 | 
			
		||||
    ./mpv.nix
 | 
			
		||||
    ./foot.nix
 | 
			
		||||
    # ./xsession.nix
 | 
			
		||||
    ./wayland.nix
 | 
			
		||||
    ./pkgs.nix
 | 
			
		||||
    ./stuff.nix
 | 
			
		||||
    ./gtk.nix
 | 
			
		||||
@@ -23,5 +20,15 @@
 | 
			
		||||
    ./music.nix
 | 
			
		||||
    ./zsh.nix
 | 
			
		||||
    ./games.nix
 | 
			
		||||
 | 
			
		||||
    /* when xserver */
 | 
			
		||||
    # ./xsession.nix
 | 
			
		||||
 | 
			
		||||
    /* when wayland */
 | 
			
		||||
    ./wayland.nix
 | 
			
		||||
    ./hyprland.nix
 | 
			
		||||
    ./foot.nix
 | 
			
		||||
    ./tofi.nix
 | 
			
		||||
    ./ags
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										33
									
								
								home/natto/hyprland.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								home/natto/hyprland.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
{ pkgs, inputs, config, conf, ... }: {
 | 
			
		||||
  wayland = {
 | 
			
		||||
    windowManager = {
 | 
			
		||||
      hyprland = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        package = inputs.hyprland.packages.${pkgs.system}.hyprland;
 | 
			
		||||
        portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
 | 
			
		||||
        xwayland = {
 | 
			
		||||
          enable = true;
 | 
			
		||||
        };
 | 
			
		||||
        extraConfig = (builtins.readFile ./config/hypr/hyprland.conf)
 | 
			
		||||
          + (with config.home.pointerCursor; ''
 | 
			
		||||
          exec-once=hyprctl setcursor ${name} ${toString size}
 | 
			
		||||
        '')
 | 
			
		||||
          + (with conf.colors.argb { a = "ee"; };''
 | 
			
		||||
          general {
 | 
			
		||||
            col.active_border = 0x${mauve} 0x${flamingo} 135deg
 | 
			
		||||
            col.inactive_border = 0x${surface0}
 | 
			
		||||
          }
 | 
			
		||||
        '');
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    grim
 | 
			
		||||
    slurp
 | 
			
		||||
    inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
 | 
			
		||||
    wl-clipboard
 | 
			
		||||
    swayimg
 | 
			
		||||
    swaybg
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
@@ -18,8 +18,7 @@ in
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    mpd-discord-rpc = {
 | 
			
		||||
      #     inherit (mpd) enable;
 | 
			
		||||
      enable = false;
 | 
			
		||||
      inherit (mpd) enable;
 | 
			
		||||
      settings = {
 | 
			
		||||
        id = 1039532008424099850; # dont really care
 | 
			
		||||
        format = {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										37
									
								
								home/natto/tofi.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								home/natto/tofi.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
			
		||||
{
 | 
			
		||||
  conf,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
{
 | 
			
		||||
  home.file.tofi = {
 | 
			
		||||
    source = pkgs.writeText "tofi-config" (
 | 
			
		||||
      pkgs.lib.generators.toKeyValue { } (
 | 
			
		||||
        with conf.colors.default;
 | 
			
		||||
        {
 | 
			
		||||
          # https://github.com/philj56/tofi/blob/master/themes/fullscreen
 | 
			
		||||
          width = "100%";
 | 
			
		||||
          height = "100%";
 | 
			
		||||
          border-width = 0;
 | 
			
		||||
          outline-width = 0;
 | 
			
		||||
          padding-left = "35%";
 | 
			
		||||
          padding-top = "35%";
 | 
			
		||||
          result-spacing = 25;
 | 
			
		||||
          num-results = 5;
 | 
			
		||||
          font = "Fira Mono";
 | 
			
		||||
          font-size = 15;
 | 
			
		||||
          text-color = foreground;
 | 
			
		||||
          selection-color = rosewater;
 | 
			
		||||
          selection-match-color = red;
 | 
			
		||||
          background-color = "#000A";
 | 
			
		||||
        }
 | 
			
		||||
      )
 | 
			
		||||
    );
 | 
			
		||||
    target = "${config.xdg.configHome}/tofi/config";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    tofi
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
@@ -1,64 +1,11 @@
 | 
			
		||||
{ pkgs, config, conf, inputs, ... }:
 | 
			
		||||
{ pkgs, inputs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./ags
 | 
			
		||||
    # ./eww
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  wayland = {
 | 
			
		||||
    windowManager = {
 | 
			
		||||
      sway = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
      };
 | 
			
		||||
      hyprland = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        package = inputs.hyprland.packages.${pkgs.system}.hyprland;
 | 
			
		||||
        portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
 | 
			
		||||
        xwayland = {
 | 
			
		||||
          enable = true;
 | 
			
		||||
        };
 | 
			
		||||
        extraConfig = (builtins.readFile ./config/hypr/hyprland.conf)
 | 
			
		||||
          + (with config.home.pointerCursor; ''
 | 
			
		||||
          exec-once=hyprctl setcursor ${name} ${toString size}
 | 
			
		||||
        '')
 | 
			
		||||
          + (with conf.colors.argb { a = "ee"; };''
 | 
			
		||||
          general {
 | 
			
		||||
            col.active_border = 0x${mauve} 0x${flamingo} 135deg
 | 
			
		||||
            col.inactive_border = 0x${surface0}
 | 
			
		||||
          }
 | 
			
		||||
        '');
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.file.tofi = {
 | 
			
		||||
    source = pkgs.writeText "tofi-config" (pkgs.lib.generators.toKeyValue { } (with conf.colors.default; {
 | 
			
		||||
      # https://github.com/philj56/tofi/blob/master/themes/fullscreen
 | 
			
		||||
      width = "100%";
 | 
			
		||||
      height = "100%";
 | 
			
		||||
      border-width = 0;
 | 
			
		||||
      outline-width = 0;
 | 
			
		||||
      padding-left = "35%";
 | 
			
		||||
      padding-top = "35%";
 | 
			
		||||
      result-spacing = 25;
 | 
			
		||||
      num-results = 5;
 | 
			
		||||
      font = "Fira Mono";
 | 
			
		||||
      font-size = 15;
 | 
			
		||||
      text-color = foreground;
 | 
			
		||||
      selection-color = rosewater;
 | 
			
		||||
      selection-match-color = red;
 | 
			
		||||
      background-color = "#000A";
 | 
			
		||||
    }));
 | 
			
		||||
    target = "${config.xdg.configHome}/tofi/config";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  home.packages = with pkgs; [
 | 
			
		||||
    tofi
 | 
			
		||||
    imv
 | 
			
		||||
    grim
 | 
			
		||||
    slurp
 | 
			
		||||
    inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
 | 
			
		||||
    wl-clipboard
 | 
			
		||||
    swayimg
 | 
			
		||||
    swaybg
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user