forked from Fachschaft/nixConfig
refactored xen_guest.nix
This commit is contained in:
parent
72c98986a0
commit
bc8b37f38d
4 changed files with 16 additions and 14 deletions
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
imports = [ ];
|
||||
boot.loader.grub = {
|
||||
device = "nodev";
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@ imports = [
|
|||
./hardware-configuration.nix
|
||||
(import ./mail.nix flake-inputs)
|
||||
../../roles
|
||||
./boot.nix
|
||||
../../roles/xen_guest.nix
|
||||
./network.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
{config, lib, pkgs, modulesPath, ...}: {
|
||||
imports = [ ];
|
||||
|
||||
boot.initrd.availableKernelModules =
|
||||
[ "ata_piix" "sr_mod" "xen_blkfront" ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/a72da670-f631-49b1-bcb3-6d378cc1f2d0";
|
||||
fsType = "ext4";
|
||||
|
|
15
nixos/roles/xen_guest.nix
Normal file
15
nixos/roles/xen_guest.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{...}: {
|
||||
imports = [ ];
|
||||
boot = {
|
||||
loader.grub = {
|
||||
device = "nodev";
|
||||
enable = true;
|
||||
};
|
||||
initrd = {
|
||||
availableKernelModules = [ "ata_piix" "sr_mod" "xen_blkfront" ];
|
||||
kernelModules = [ ];
|
||||
};
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue