From 5339e045194c5ad482250c0271959a5fd9f97db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 2 Jan 2022 17:23:58 +0100 Subject: nios: Add sentinel module --- medkit-configuration.nix | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 medkit-configuration.nix (limited to 'medkit-configuration.nix') diff --git a/medkit-configuration.nix b/medkit-configuration.nix new file mode 100644 index 0000000..cb287b1 --- /dev/null +++ b/medkit-configuration.nix @@ -0,0 +1,55 @@ +{ config, lib, pkgs, ... }: { + boot.loader.grub.enable = false; + boot.loader.generic-extlinux-compatible.enable = true; + boot.kernelParams = [ + "earlyprintk" "console=ttyMV0,115200" "earlycon=ar3700_uart,0xd0012000" + "boot.shell_on_fail" + ]; + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.supportedFilesystems = [ "btrfs" "vfat" "ntfs" ]; + + zramSwap = { + enable = true; + memoryPercent = 100; + }; + swapDevices = [{ + device = "/dev/mmcblk1p2"; + priority = 0; + }]; + + fileSystems = { + "/" = { + device = "/dev/mmcblk1p1"; + fsType = "btrfs"; + }; + }; + + networking.hostName = "nixturris"; + + i18n.supportedLocales = ["en_US.UTF-8/UTF-8" "cs_CZ.UTF-8/UTF-8"]; + nix = { + package = pkgs.nixFlakes; + extraOptions = "experimental-features = nix-command flakes"; + }; + + programs.vim.defaultEditor = true; + + #services.sentinel.enable = true; + + services.openssh = { + enable = true; + passwordAuthentication = true; + permitRootLogin = "yes"; + }; + + environment.systemPackages = with pkgs; [ + nixos-option + htop + ]; + + users = { + mutableUsers = false; + users.root.password = "nixturris"; + }; + +} -- cgit v1.2.3