From b1bd3d7b5cf5d2dfb94493bb73140e6d8210f401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 9 Apr 2022 18:54:00 +0200 Subject: Refactor Mox support --- medkit.nix | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 medkit.nix (limited to 'medkit.nix') diff --git a/medkit.nix b/medkit.nix deleted file mode 100644 index aa93080..0000000 --- a/medkit.nix +++ /dev/null @@ -1,45 +0,0 @@ -board: { config, lib, pkgs, modulesPath, ... }: { - imports = [ - "${toString modulesPath}/installer/cd-dvd/system-tarball.nix" - ]; - - boot.consoleLogLevel = lib.mkDefault 7; - turris.device = "/dev/mmcblk1"; # TODO this is for mox and sd card only - - # Allow access to the root account right after installation - users = { - mutableUsers = false; - users.root.password = "nixturris"; - }; - - # TODO we have to generate the hardware specific configuration on first boot - tarball.contents = [ - { source = pkgs.writeText "default-nixturris-flake" '' - { - inputs.nixturris.url = "git+git://cynerd.cz/nixturris.git"; - outputs = { self, nixturris }: { - nixosConfigurations.nixturris = nixturris.lib.nixturrisSystem { - board = "${board}"; - modules = [({ config, lib, pkgs, ... }: { - # Optionally place your configuration here - })]; - }; - }; - } - ''; - target = "/etc/nixos/flake.nix"; - } - { source = pkgs.writeText "medkit-extlinux" '' - DEFAULT nixos-default - TIMEOUT 0 - LABEL nixos-default - MENU LABEL NixOS - Default - FDTDIR /run/current-system/dtbs - LINUX /run/current-system/kernel - INITRD /run/current-system/initrd - APPEND init=${config.system.build.toplevel}/init ${builtins.toString config.boot.kernelParams} - ''; - target = "/boot/extlinux/extlinux.conf"; - } - ]; -} -- cgit v1.2.3