mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add home
This commit is contained in:
parent
e81d8c9be4
commit
e2e390efdf
11 changed files with 96 additions and 100 deletions
11
modules/home/terminal/default.nix
Normal file
11
modules/home/terminal/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, lib, osConfig, ... }: {
|
||||
imports = [
|
||||
./shell.nix
|
||||
./emulator.nix
|
||||
# ./tools.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf osConfig.mods.desktop.enable {
|
||||
mods.terminal.emulator.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
9
modules/home/terminal/emulator.nix
Normal file
9
modules/home/terminal/emulator.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
options = {
|
||||
mods.terminal.emulator.enable = lib.mkEnableOption "enables terminal emulator";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.terminal.emulator.enable {
|
||||
programs.alacritty.enable = true;
|
||||
};
|
||||
}
|
||||
26
modules/home/terminal/shell.nix
Normal file
26
modules/home/terminal/shell.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, lib, config, osConfig, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
history = {
|
||||
save = 2097152;
|
||||
size = 2097152;
|
||||
expireDuplicatesFirst = true;
|
||||
ignoreDups = true;
|
||||
ignoreSpace = true;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
|
||||
zplug = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
{ name = "jeffreytse/zsh-vi-mode"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs.starship.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue