This commit is contained in:
muon 2024-06-03 13:09:49 +00:00
parent e81d8c9be4
commit e2e390efdf
11 changed files with 96 additions and 100 deletions

8
modules/home/default.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs, lib, ... }: {
imports = [
./terminal
];
# Let Home Manager install and manage itself
programs.home-manager.enable = true;
}

View 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;
};
}

View 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;
};
}

View 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;
}

View file

@ -11,6 +11,9 @@
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "changeme";
shell = if config.programs.zsh.enable
then pkgs.zsh
else pkgs.bash;
};
};
}

View file

@ -5,7 +5,7 @@
];
options = {
mods.desktop.enable = lib.mkEnableOption "enables sound";
mods.desktop.enable = lib.mkEnableOption "enables graphical desktop environment";
};
config = lib.mkIf config.mods.desktop.enable {

View file

@ -1,11 +1,15 @@
{ pkgs, lib, ... }: {
# Default programs
environment.systemPackages = with pkgs; [
vim
wget
git
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.zsh.enable = true;
}