add daedalusvm
This commit is contained in:
parent
6e94311435
commit
76679c2275
22 changed files with 121 additions and 73 deletions
31
hosts/daedalusvm/default.nix
Normal file
31
hosts/daedalusvm/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
21
hosts/daedalusvm/hardware-configuration.nix
Normal file
21
hosts/daedalusvm/hardware-configuration.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue