tweaks to the i3 configuration now that Im actually testing on real hardware.
This commit is contained in:
		
							parent
							
								
									2bcc6c86aa
								
							
						
					
					
						commit
						d3e13cf0f0
					
				
					 9 changed files with 52 additions and 11 deletions
				
			
		
							
								
								
									
										25
									
								
								configs/home-manager/ghostty.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								configs/home-manager/ghostty.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,25 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  config,
 | 
				
			||||||
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  lib,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}: {
 | 
				
			||||||
 | 
					  home.packages = with pkgs; [
 | 
				
			||||||
 | 
					    fira-code
 | 
				
			||||||
 | 
					    # monocraft
 | 
				
			||||||
 | 
					    # miracode
 | 
				
			||||||
 | 
					    nerd-fonts.symbols-only
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  programs.ghostty = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    settings = {
 | 
				
			||||||
 | 
					      font-family = "Fira Code";
 | 
				
			||||||
 | 
					      theme = "Gruvbox Dark";
 | 
				
			||||||
 | 
					      font-size = 12;
 | 
				
			||||||
 | 
					      background-opacity = 0.8;
 | 
				
			||||||
 | 
					      background-blur = true;
 | 
				
			||||||
 | 
					      window-decoration = "server";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs.kitty = {
 | 
					  programs.kitty = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    font.name = "FiraCode";
 | 
					    font.name = "Fira Code";
 | 
				
			||||||
    themeFile = "gruvbox-dark";
 | 
					    themeFile = "gruvbox-dark";
 | 
				
			||||||
    settings = {
 | 
					    settings = {
 | 
				
			||||||
      background_opacity = "0.8";
 | 
					      background_opacity = "0.8";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,7 +6,8 @@
 | 
				
			||||||
}: {
 | 
					}: {
 | 
				
			||||||
  services.picom = {
 | 
					  services.picom = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    # backend = "glx";
 | 
					    backend = "glx";
 | 
				
			||||||
 | 
					    extraArgs = ["--transparent-clipping"];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  xsession.windowManager.i3.config.startup = [
 | 
					  xsession.windowManager.i3.config.startup = [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,8 @@
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    xkb.options = "ctrl:nocaps,compose:rctrl";
 | 
					    xkb.options = "ctrl:nocaps,compose:rctrl";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					  fonts.fontDir.enable = true;
 | 
				
			||||||
 | 
					  fonts.enableDefaultPackages = true;
 | 
				
			||||||
  home-manager.users.${config.host.details.user} = {config, ...}: {
 | 
					  home-manager.users.${config.host.details.user} = {config, ...}: {
 | 
				
			||||||
    home.packages = with pkgs; [
 | 
					    home.packages = with pkgs; [
 | 
				
			||||||
      maim
 | 
					      maim
 | 
				
			||||||
| 
						 | 
					@ -49,7 +51,7 @@
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      config = {
 | 
					      config = {
 | 
				
			||||||
        modifier = mod;
 | 
					        modifier = mod;
 | 
				
			||||||
        terminal = "kitty";
 | 
					        terminal = "ghostty";
 | 
				
			||||||
        menu = "rofi -show drun";
 | 
					        menu = "rofi -show drun";
 | 
				
			||||||
        defaultWorkspace = "workspace ${ws1}";
 | 
					        defaultWorkspace = "workspace ${ws1}";
 | 
				
			||||||
        keybindings = {
 | 
					        keybindings = {
 | 
				
			||||||
| 
						 | 
					@ -234,7 +236,7 @@
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    imports = [
 | 
					    imports = [
 | 
				
			||||||
      ../../home-manager/kitty.nix
 | 
					      ../../home-manager/ghostty.nix
 | 
				
			||||||
      ../../home-manager/rofi.nix
 | 
					      ../../home-manager/rofi.nix
 | 
				
			||||||
      ../../home-manager/dunst.nix
 | 
					      ../../home-manager/dunst.nix
 | 
				
			||||||
      ../../home-manager/feh.nix
 | 
					      ../../home-manager/feh.nix
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,6 +4,13 @@
 | 
				
			||||||
  lib,
 | 
					  lib,
 | 
				
			||||||
  ...
 | 
					  ...
 | 
				
			||||||
}: {
 | 
					}: {
 | 
				
			||||||
 | 
					  fonts.packages = with pkgs; [
 | 
				
			||||||
 | 
					    fira-code
 | 
				
			||||||
 | 
					    monocraft
 | 
				
			||||||
 | 
					    miracode
 | 
				
			||||||
 | 
					    nerd-fonts.symbols-only
 | 
				
			||||||
 | 
					  ];
 | 
				
			||||||
 | 
					  services.upower.enable = config.host.details.isLaptop;
 | 
				
			||||||
  home-manager.users.${config.host.details.user} = {
 | 
					  home-manager.users.${config.host.details.user} = {
 | 
				
			||||||
    config,
 | 
					    config,
 | 
				
			||||||
    osConfig,
 | 
					    osConfig,
 | 
				
			||||||
| 
						 | 
					@ -13,8 +20,7 @@
 | 
				
			||||||
    xsession.windowManager.i3.config.bars = [
 | 
					    xsession.windowManager.i3.config.bars = [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        fonts = {
 | 
					        fonts = {
 | 
				
			||||||
          names = ["FiraCode Nerd Font"];
 | 
					          names = ["Fira Code"];
 | 
				
			||||||
          style = "Mono";
 | 
					 | 
				
			||||||
          size = 10.0;
 | 
					          size = 10.0;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
        position = "bottom";
 | 
					        position = "bottom";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,15 +4,16 @@
 | 
				
			||||||
  lib,
 | 
					  lib,
 | 
				
			||||||
  ...
 | 
					  ...
 | 
				
			||||||
}: {
 | 
					}: {
 | 
				
			||||||
  environment.systemPackages = with pkgs; [
 | 
					 | 
				
			||||||
    betterlockscreen
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
  home-manager.users.${config.host.details.user} = {
 | 
					  home-manager.users.${config.host.details.user} = {
 | 
				
			||||||
    config,
 | 
					    config,
 | 
				
			||||||
    osConfig,
 | 
					    osConfig,
 | 
				
			||||||
    lib,
 | 
					    lib,
 | 
				
			||||||
    ...
 | 
					    ...
 | 
				
			||||||
  }: {
 | 
					  }: {
 | 
				
			||||||
 | 
					    home.packages = with pkgs; [
 | 
				
			||||||
 | 
					      betterlockscreen
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    xsession.windowManager.i3.config = {
 | 
					    xsession.windowManager.i3.config = {
 | 
				
			||||||
      keybindings = let
 | 
					      keybindings = let
 | 
				
			||||||
        mod = config.xsession.windowManager.i3.config.modifier;
 | 
					        mod = config.xsession.windowManager.i3.config.modifier;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
    ./nginx.nix
 | 
					    ./nginx.nix
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#allow us to manage jellyfins media.
 | 
					  #allow us to manage jellyfins media.
 | 
				
			||||||
  users.users.${config.host.details.user}.extraGroups = ["jellyfin"];
 | 
					  users.users.${config.host.details.user}.extraGroups = ["jellyfin"];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  services.jellyfin = {
 | 
					  services.jellyfin = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -38,6 +38,12 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
				
			||||||
      networking.hostName = "harmatan";
 | 
					      networking.hostName = "harmatan";
 | 
				
			||||||
      networking.hostId = "7a42af26";
 | 
					      networking.hostId = "7a42af26";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      services.xserver.dpi = 180;
 | 
				
			||||||
 | 
					      environment.variables = {
 | 
				
			||||||
 | 
					        GDK_SCALE = "2";
 | 
				
			||||||
 | 
					        GDK_DPI_SCALE = "0.5";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      home-manager.sharedModules = [
 | 
					      home-manager.sharedModules = [
 | 
				
			||||||
        inputs.sops-nix.homeManagerModules.sops
 | 
					        inputs.sops-nix.homeManagerModules.sops
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,7 +14,7 @@
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  users.users.${config.host.details.user}.extraGroups = [ "dialout" ];
 | 
					  users.users.${config.host.details.user}.extraGroups = ["dialout"];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs.nix-ld = {
 | 
					  programs.nix-ld = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue