added own iso

This commit is contained in:
Rouven Seifert 2023-05-01 19:59:25 +02:00
parent 2a06e7523e
commit b7ecc2984d
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
9 changed files with 73 additions and 7 deletions

18
hosts/iso/default.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, lib, modulesPath, ... }:
{
imports = [
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
./zsh.nix
];
console = {
font = "Lat2-Terminus16";
keyMap = "dvorak";
};
programs.git.enable = true;
# in case we need to rescue a zfs machine
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
}

30
hosts/iso/zsh.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }:
{
programs.command-not-found.enable = false;
environment.systemPackages = with pkgs; [
fzf
];
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;
autosuggestions = {
enable = true;
highlightStyle = "fg=#00bbbb,bold";
};
shellInit =
''
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
zsh-newuser-install () {}
'';
# Hacky way to bind Ctrl+R to fzf. Otherwise it will be overridden
promptInit =
''
source ${pkgs.fzf}/share/fzf/completion.zsh
source ${pkgs.fzf}/share/fzf/key-bindings.zsh
'';
};
}