A simple flake setup with tests and VM support

This commit is contained in:
Henrik
2025-10-09 22:31:48 +02:00
parent cc3a2ed192
commit 814d54bcf4
11 changed files with 399 additions and 0 deletions

8
nix/modules/ssh.nix Normal file
View File

@@ -0,0 +1,8 @@
{ config, pkgs, inputs, ... }:
{
services.openssh = {
enable = true;
# permitRootLogin = "no";
};
}

40
nix/modules/zsh.nix Normal file
View File

@@ -0,0 +1,40 @@
{ lib, config, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
enableLsColors = true;
histSize = 10000;
histFile = "$HOME/.zsh_history";
shellAliases = {
ll = "ls - l";
};
ohMyZsh = {
enable = true;
plugins = [
"sudo"
#"direnv"
#"fzf"
];
theme = "terminalparty";
};
# custom zsh options
setOptions = [
"HIST_IGNORE_DUPS" # do not write dupes
"HIST_SAVE_NO_DUPS"
"HIST_IGNORE_ALL_DUPS"
"HIST_FIND_NO_DUPS"
"APPEND_HISTORY" # append rather than overwrite ...?
"SHARE_HISTORY" # all zsh sessions share history file
"HIST_FCNTL_LOCK" # useful to prevent lockups ...? see github
"HIST_IGNORE_SPACE" # add space before command to not write to history
];
};
}