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 = {
import = [ "${tokyonight}/extras/alacritty/tokyonight_night.yml" ];
window = {
padding = {
x = 10;
y = 10;
};
decorations = "none";
opacity = 0.8;
dynamic_title = true;
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 = [
./git
./ssh
./tui
./hyprland
./alacritty
./firefox
./zathura
./git/default.nix
./ssh/default.nix
./tui/default.nix
./hyprland/default.nix
./firefox/default.nix
./zathura/default.nix
./emacs/server.nix
];
home.packages = with pkgs; [
bitwarden
signal-desktop
libreoffice
zotero
];
home.packages = with pkgs; [ bitwarden signal-desktop libreoffice zotero ];
programs.home-manager.enable = true;
}

View file

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

View file

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

View file

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