mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-18 17:44:06 +05:30
Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate
This commit is contained in:
parent
1fa8b17b07
commit
0453901d17
303 changed files with 3560 additions and 5566 deletions
19
modules/user/terminal/alacritty.nix
Normal file
19
modules/user/terminal/alacritty.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.userSettings.alacritty;
|
||||
in {
|
||||
options = {
|
||||
userSettings.alacritty = {
|
||||
enable = lib.mkEnableOption "Enable alacritty";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.alacritty ];
|
||||
programs.alacritty.enable = true;
|
||||
programs.alacritty.settings = {
|
||||
window.opacity = lib.mkForce 0.85;
|
||||
};
|
||||
};
|
||||
}
|
16
modules/user/terminal/default.nix
Normal file
16
modules/user/terminal/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
userSettings.terminal = lib.mkOption {
|
||||
default = "alacritty";
|
||||
description = "Default terminal";
|
||||
type = lib.types.enum [ "alacritty" "kitty" ];
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
userSettings.alacritty.enable = lib.mkDefault (config.userSettings.browser == "brave");
|
||||
userSettings.kitty.enable = lib.mkDefault (config.userSettings.browser == "librewolf");
|
||||
};
|
||||
}
|
20
modules/user/terminal/kitty.nix
Normal file
20
modules/user/terminal/kitty.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.userSettings.kitty;
|
||||
in {
|
||||
options = {
|
||||
userSettings.kitty = {
|
||||
enable = lib.mkEnableOption "Enable kitty";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.kitty ];
|
||||
programs.kitty.enable = true;
|
||||
programs.kitty.settings = {
|
||||
background_opacity = lib.mkForce "0.85";
|
||||
modify_font = "cell_width 90%";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue