mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-26 00:18:28 +02:00
added own iso
This commit is contained in:
parent
2a06e7523e
commit
b7ecc2984d
9 changed files with 73 additions and 7 deletions
18
hosts/iso/default.nix
Normal file
18
hosts/iso/default.nix
Normal 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
30
hosts/iso/zsh.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
};
|
||||
|
||||
nix.settings = {
|
||||
cores = 6; # don't clutter the whole system when compiling stuff
|
||||
# cores = 6; # don't clutter the whole system when compiling stuff
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue