nixos-iso/iso.nix

91 lines
2.0 KiB
Nix
Raw Normal View History

2023-09-08 17:54:07 +02:00
{ pkgs, lib, config, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-base.nix")
];
disabledModules = [
"profiles/base.nix"
];
2023-11-10 21:03:33 +01:00
nixpkgs.overlays = [ (import ./packages) ];
2023-09-08 17:54:07 +02:00
networking.hostName = "netalis-nixos-iso";
isoImage.isoBaseName = "netalis-nixos-iso";
boot.supportedFilesystems =
[ "btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs" ] ++
lib.optional (lib.meta.availableOn pkgs.stdenv.hostPlatform config.boot.zfs.package) "zfs";
# Configure host id for ZFS to work
networking.hostId = lib.mkDefault "8425e349";
environment.systemPackages = with pkgs; [
2023-11-02 21:30:40 +01:00
w3m-nographics # needed for the manual anyway
testdisk # useful for repairing boot problems
ms-sys # for writing Microsoft boot sectors / MBRs
efibootmgr
efivar
htop
parted
gptfdisk
ddrescue
ccrypt
cryptsetup # needed for dm-crypt volumes
2023-09-08 17:54:07 +02:00
# Some text editors.
2023-11-02 21:30:40 +01:00
(vim.customize {
2023-09-08 17:54:07 +02:00
name = "vim";
vimrcConfig.customRC = ''
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
set modeline
set modelines=1
set encoding=utf-8
syntax on
au BufRead,BufNewFile *.nix set ts=2 sw=2
'';
})
# Some networking tools.
2023-11-02 21:30:40 +01:00
fuse
fuse3
sshfs-fuse
socat
screen
tcpdump
2023-09-08 17:54:07 +02:00
# Hardware-related tools.
2023-11-02 21:30:40 +01:00
sdparm
hdparm
smartmontools # for diagnosing hard disks
pciutils
usbutils
nvme-cli
2023-09-08 17:54:07 +02:00
# Some compression/archiver tools.
2023-11-02 21:30:40 +01:00
unzip
zip
2023-11-10 21:03:33 +01:00
# own packages
netali-configure-net-ruby
netali-default-config-ruby
2023-09-08 17:54:07 +02:00
];
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "de-latin1";
};
users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOV4f3/OcNQIHqomvH0nGLDmXDlrO/u7JKE9Fgq2Vuqs me@netali.de" ];
networking.dhcpcd.enable = false;
networking.useDHCP = false;
2023-11-02 21:30:40 +01:00
}