Split alacritty config for macos vs hyprland

This commit is contained in:
Evie Litherland-Smith 2023-08-09 10:27:10 +01:00
parent 55dfa90091
commit 1680557067
7 changed files with 47 additions and 31 deletions

View file

@ -7,12 +7,6 @@
settings = { settings = {
import = [ "${tokyonight}/extras/alacritty/tokyonight_night.yml" ]; import = [ "${tokyonight}/extras/alacritty/tokyonight_night.yml" ];
window = { window = {
padding = {
x = 10;
y = 10;
};
decorations = "none";
opacity = 0.8;
dynamic_title = true; dynamic_title = true;
decorations_theme_variant = "Dark"; decorations_theme_variant = "Dark";
}; };

13
home/alacritty/macos.nix Normal file
View file

@ -0,0 +1,13 @@
{ ... }:
{
imports = [ ./default.nix ];
programs.alacritty.settings.window = {
dimensions = {
columns = 80;
lines = 24;
};
decorations = "full";
opacity = 1.0;
};
}

13
home/alacritty/tiling.nix Normal file
View file

@ -0,0 +1,13 @@
{ ... }:
{
imports = [ ./default.nix ];
programs.alacritty.settings.window = {
padding = {
x = 10;
y = 10;
};
decorations = "none";
opacity = 0.8;
};
}

View file

@ -1,21 +1,15 @@
{ pkgs, wallpapers, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
./git ./git/default.nix
./ssh ./ssh/default.nix
./tui ./tui/default.nix
./hyprland ./hyprland/default.nix
./alacritty ./firefox/default.nix
./firefox ./zathura/default.nix
./zathura
./emacs/server.nix ./emacs/server.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [ bitwarden signal-desktop libreoffice zotero ];
bitwarden
signal-desktop
libreoffice
zotero
];
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View file

@ -21,9 +21,10 @@ let
in { in {
imports = [ imports = [
hyprland.homeManagerModules.default hyprland.homeManagerModules.default
./waybar ../alacritty/tiling.nix
./rofi ./waybar/default.nix
./anyrun ./rofi/default.nix
./anyrun/default.nix
./swaylock.nix ./swaylock.nix
./gtk.nix ./gtk.nix
./mako.nix ./mako.nix
@ -31,7 +32,10 @@ in {
home.packages = with pkgs; [ libsForQt5.polkit-kde-agent configure-gtk ]; home.packages = with pkgs; [ libsForQt5.polkit-kde-agent configure-gtk ];
programs = { programs = {
firefox.package = pkgs.firefox-wayland; firefox.package = pkgs.firefox-wayland;
rofi.package = pkgs.rofi-wayland; rofi = {
package = pkgs.rofi-wayland;
terminal = "${pkgs.alacritty}/bin/alacritty";
};
}; };
services.kanshi = { services.kanshi = {
enable = true; enable = true;

View file

@ -1,13 +1,11 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let icon-theme = config.gtk.iconTheme.name; let icon-theme = config.gtk.iconTheme.name;
in { in {
imports = [ ../gtk.nix ];
home.packages = with pkgs; [ rofi-power-menu ]; home.packages = with pkgs; [ rofi-power-menu ];
programs.rofi = { programs.rofi = {
enable = true; enable = true;
location = "center"; location = "center";
pass.enable = true; pass.enable = true;
terminal = "${pkgs.alacritty}/bin/alacritty";
extraConfig = { extraConfig = {
modi = modi =
"run,drun,ssh,power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu"; "run,drun,ssh,power-menu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";

View file

@ -5,11 +5,11 @@ let
in { in {
imports = [ imports = [
../../home/shell/zsh.nix ../../home/shell/zsh.nix
../../home/git ../../home/git/default.nix
../../home/ssh ../../home/ssh/default.nix
../../home/tui ../../home/tui/default.nix
../../home/alacritty ../../home/alacritty/macos.nix
../../home/emacs ../../home/emacs/default.nix
]; ];
home = { home = {
inherit username homeDirectory; inherit username homeDirectory;