add daedalusvm

This commit is contained in:
Philipp Hochkamp 2022-06-03 02:30:06 +02:00
parent 6e94311435
commit 76679c2275
No known key found for this signature in database
GPG key ID: 3676AB4CB36E5641
22 changed files with 121 additions and 73 deletions

View file

@ -0,0 +1,31 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, inputs, pkgs, lib, ... }:
let
pubkeys = import ../../data/pubkeys.nix;
in
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Don't Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Immutable users due to tmpfs
users.mutableUsers = false;
ragon = {
cli.enable = true;
user.enable = true;
services = {
docker.enable = true;
ssh.enable = true;
};
};
}

View file

@ -0,0 +1,21 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" ];
networking.interfaces.enp0s6.useDHCP = true;
swapDevices = [{ device = "/dev/disk/by-id/NIXOS_SWAP"; }];
fileSystems."/boot" = {
device = "/dev/disk/by-id/NIXOS_BOOT";
fstype = "vfat";
};
fileSystems."/" = {
device = "/dev/disk/by-id/NIXOS_ROOT";
fsType = "ext4";
};
}