~sumner/home-manager-config

93f5fbcacdaf3e9d37f328deb424b796fbfe3ebc — Sumner Evans 8 months ago e3cf859
Updates for Kohaku
M host-configurations/mustafar.nix => host-configurations/mustafar.nix +4 -2
@@ 1,11 1,13 @@
{ ... }: rec {
{ lib, ... }: with lib; rec {
  wayland.enable = true;
  laptop.enable = true;
  networking.interfaces = [ "wlp0s20f3" ];
  windowManager.modKey = "Mod1"; # use Alt as modifier on mustafar

  programs.alacritty.settings.font.size = 11;

  wayland.extraSwayConfig.config = {
    # Scale to 1.75 instead of 2.
    # Scale to 1.8 instead of 2.
    output.eDP-1.scale = "1.75";
    input = {
      "*" = {

M programs/alacritty.nix => programs/alacritty.nix +2 -2
@@ 1,9 1,9 @@
{ ... }: {
{ lib, ... }: {
  programs.alacritty = {
    enable = true;
    settings = {
      window.title = "Terminal";
      font.size = 10;
      font.size = lib.mkDefault 10;

      # Colors (One Dark)
      # https://github.com/eendroroy/alacritty-theme/blob/master/themes/one_dark.yaml

M services/window-manager/common.nix => services/window-manager/common.nix +0 -13
@@ 194,19 194,6 @@
          };
        };

        startup = let
          gsettings = "${pkgs.glib}/bin/gsettings";
          gnomeSchema = "org.gnome.desktop.interface";
        in
          [
            { command = "${config.home.homeDirectory}/bin/inactive-windows-transparency.py"; }

            # GTK
            { command = "${gsettings} set ${gnomeSchema} gtk-theme 'Arc-Dark'"; always = true; }
            { command = "${gsettings} set ${gnomeSchema} icon-theme 'Arc'"; always = true; }
            { command = "${gsettings} set ${gnomeSchema} cursor-theme 'breeze_cursors'"; always = true; }
          ];

        window = {
          border = 0;
          hideEdgeBorders = "both";

M services/window-manager/wayland.nix => services/window-manager/wayland.nix +13 -3
@@ 26,11 26,21 @@ in
        config.focus.forceWrapping = true;
        config.startup = let
          wlpaste = "${pkgs.wl-clipboard}/bin/wl-paste";
          gsettings = "${pkgs.glib}/bin/gsettings";
          gnomeSchema = "org.gnome.desktop.interface";
        in
          [
            # Clipboard Manager
            { command = "${wlpaste} -t text --watch ${clipmanCmd} store ${clipmanHistpath}"; }
            { command = "${wlpaste} -p -t text --watch ${clipmanCmd} store -P ${clipmanHistpath}"; }
            { command = "${pkgs.mako}/bin/mako"; }

            # Window transparency
            { command = "${config.home.homeDirectory}/bin/inactive-windows-transparency.py"; }

            # GTK
            { command = "${gsettings} set ${gnomeSchema} gtk-theme 'Arc-Dark'"; always = true; }
            { command = "${gsettings} set ${gnomeSchema} icon-theme 'Arc'"; always = true; }
            { command = "${gsettings} set ${gnomeSchema} cursor-theme 'breeze_cursors'"; always = true; }
          ];

        config.keybindings = let


@@ 52,7 62,7 @@ in
        in
          {
            # Popup Clipboard Manager
            "${modifier}+c" = "exec ${clipmanCmd} pick -t ${pkgs.rofi}/bin/rofi ${clipmanHistpath}";
            "${modifier}+c" = "exec ${clipmanCmd} pick -t rofi ${clipmanHistpath}";

            # Lock screen
            "${modifier}+Shift+x" = "exec ${swaylockCmd}";


@@ 109,7 119,7 @@ in
      extraConfig = generators.toINI {} (
        mapAttrs' (
          name: val: nameValuePair
            (builtins.replaceStrings [ "_" ] [ "=" ] name)
            (builtins.replaceStrings [ "_" "critical" ] [ "=" "high" ] name)
            (
              mapAttrs' (
                k: v: