mainly alacritty stuff
This commit is contained in:
parent
57f2638f0e
commit
6869c2acbd
8 changed files with 134 additions and 10 deletions
|
|
@ -57,7 +57,7 @@
|
|||
};
|
||||
|
||||
# smol Thinkpad Yoga
|
||||
# Alternative Name: Uru
|
||||
# Alternative Name: Uru
|
||||
spider = lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
modules = [
|
||||
|
|
|
|||
113
home-manager/luna/categories/desktop/common/alacritty.nix
Normal file
113
home-manager/luna/categories/desktop/common/alacritty.nix
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
{
|
||||
xdg.mimeApps = {
|
||||
associations.added = {
|
||||
"x-scheme-handler/terminal" = "Alacritty.desktop";
|
||||
};
|
||||
defaultApplications = {
|
||||
"x-scheme-handler/terminal" = "Alacritty.desktop";
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
env = {TERM = "xterm-256color";};
|
||||
font = {
|
||||
size = 11;
|
||||
};
|
||||
scrolling = {
|
||||
history = 100000;
|
||||
multiplier = 3;
|
||||
};
|
||||
keyboard.bindings = [
|
||||
{
|
||||
key = "Return";
|
||||
mods = "Control|Shift";
|
||||
action = "SpawnNewInstance";
|
||||
}
|
||||
{
|
||||
key = "Q";
|
||||
mods = "Control|Shift";
|
||||
action = "ToggleViMode";
|
||||
}
|
||||
];
|
||||
colors = {
|
||||
#catppuccin
|
||||
primary = {
|
||||
background = "#1e1e2e";
|
||||
foreground = "#cdd6f4";
|
||||
dim_foreground = "#7f849c";
|
||||
bright_foreground = "#cdd6f4";
|
||||
};
|
||||
cursor = {
|
||||
text = "#1e1e2e";
|
||||
cursor = "#f5e0dc";
|
||||
};
|
||||
vi_mode_cursor = {
|
||||
text = "#1e1e2e";
|
||||
cursor = "#b4befe";
|
||||
};
|
||||
search = {
|
||||
matches = {
|
||||
foreground = "#1e1e2e";
|
||||
background = "#a6adc8";
|
||||
};
|
||||
focused_match = {
|
||||
foreground = "#1e1e2e";
|
||||
background = "#a6e3a1";
|
||||
};
|
||||
};
|
||||
footer_bar = {
|
||||
foreground = "#1e1e2e";
|
||||
background = "#a6adc8";
|
||||
};
|
||||
hints = {
|
||||
start = {
|
||||
foreground = "#1e1e2e";
|
||||
background = "#f9e2af";
|
||||
};
|
||||
end = {
|
||||
foreground = "#1e1e2e";
|
||||
background = "#a6adc8";
|
||||
};
|
||||
};
|
||||
selection = {
|
||||
text = "#1e1e2e";
|
||||
background = "#f5e0dc";
|
||||
};
|
||||
normal = {
|
||||
black = "#45475a";
|
||||
red = "#f38ba8";
|
||||
green = "#a6e3a1";
|
||||
yellow = "#f9e2af";
|
||||
blue = "#89b4fa";
|
||||
magenta = "#f5c2e7";
|
||||
cyan = "#94e2d5";
|
||||
white = "#bac2de";
|
||||
};
|
||||
bright = {
|
||||
black = "#585b70";
|
||||
red = "#f38ba8";
|
||||
green = "#a6e3a1";
|
||||
yellow = "#f9e2af";
|
||||
blue = "#89b4fa";
|
||||
magenta = "#f5c2e7";
|
||||
cyan = "#94e2d5";
|
||||
white = "#a6adc8";
|
||||
};
|
||||
dim = {
|
||||
black = "#45475a";
|
||||
red = "#f38ba8";
|
||||
green = "#a6e3a1";
|
||||
yellow = "#f9e2af";
|
||||
blue = "#89b4fa";
|
||||
magenta = "#f5c2e7";
|
||||
cyan = "#94e2d5";
|
||||
white = "#bac2de";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./alacritty.nix
|
||||
./fonts.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
5
hosts/common/optional/ckb-next.nix
Normal file
5
hosts/common/optional/ckb-next.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
hardware.ckb-next = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
4
hosts/common/optional/flatpak.nix
Normal file
4
hosts/common/optional/flatpak.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
# flatpak
|
||||
services.flatpak.enable = true;
|
||||
}
|
||||
|
|
@ -12,4 +12,10 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# adds alacritty to nautilus
|
||||
programs.nautilus-open-any-terminal = {
|
||||
enable = true;
|
||||
terminal = "alacritty";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@
|
|||
# optional stuff
|
||||
../common/optional/gnome.nix
|
||||
../common/optional/pipewire.nix
|
||||
../common/optional/flatpak.nix
|
||||
../common/optional/ckb-next.nix
|
||||
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -44,9 +46,6 @@
|
|||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# flatpak
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
@ -68,6 +67,4 @@
|
|||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
};
|
||||
|
||||
hardware.ckb-next.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
# optional stuff
|
||||
../common/optional/gnome.nix
|
||||
../common/optional/pipewire.nix
|
||||
../common/optional/flatpak.nix
|
||||
|
||||
# thinkpad-related
|
||||
../common/optional/thinkpad.nix
|
||||
|
|
@ -27,7 +28,7 @@
|
|||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
|
||||
networking.hostName = "spider"; # Define your hostname.
|
||||
|
||||
# Enable networking
|
||||
|
|
@ -45,9 +46,6 @@
|
|||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# flatpak
|
||||
services.flatpak.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue