From 5828af9fc19e18dc85e49fcc1a251a7eb25d909c Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 11 Aug 2023 16:51:35 +0200 Subject: init --- machines/nixos-test/default.nix | 16 ++++++++++++++++ machines/nixos-test/hardware-configuration.nix | 9 +++++++++ 2 files changed, 25 insertions(+) create mode 100644 machines/nixos-test/default.nix create mode 100644 machines/nixos-test/hardware-configuration.nix (limited to 'machines/nixos-test') diff --git a/machines/nixos-test/default.nix b/machines/nixos-test/default.nix new file mode 100644 index 0000000..6a83e9a --- /dev/null +++ b/machines/nixos-test/default.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ]; + + boot.cleanTmpDir = true; + zramSwap.enable = true; + networking.hostName = "default"; + networking.domain = ""; + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO2eIUtbt7RM75ThjKfUjm24QkzkzCSj7hs+GLaaxMeH cardno:12_767_512'' + ]; +} diff --git a/machines/nixos-test/hardware-configuration.nix b/machines/nixos-test/hardware-configuration.nix new file mode 100644 index 0000000..850f51f --- /dev/null +++ b/machines/nixos-test/hardware-configuration.nix @@ -0,0 +1,9 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub.device = "/dev/sda"; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/sda2"; fsType = "ext4"; }; + +} -- cgit v1.2.3