home-manager: modularize home configurations
This commit is contained in:
parent
ac9918c759
commit
038913d3b5
16 changed files with 258 additions and 214 deletions
31
modules/home-manager/alacritty.nix
Normal file
31
modules/home-manager/alacritty.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ config, lib, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.custom-hm.alacritty;
|
||||
in
|
||||
{
|
||||
options.custom-hm.alacritty = {
|
||||
enable = mkEnableOption "alacritty";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
shell = {
|
||||
program = config.programs.zellij.package + "/bin/zellij";
|
||||
args = [
|
||||
"attach"
|
||||
"-c"
|
||||
];
|
||||
};
|
||||
font.size = 10.0;
|
||||
window = {
|
||||
resize_increments = true;
|
||||
dynamic_padding = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue