mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
Finally fix tweedledum and tweedledee
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
4be1e7d019
commit
badebb495e
|
@ -1,13 +1,14 @@
|
|||
hostname:
|
||||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, modulesPath, ... }@all:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.magic_rb.hardware."${hostname}";
|
||||
qemu-guest = import (modulesPath + "/profiles/qemu-guest.nix") all;
|
||||
in
|
||||
{
|
||||
options.magic_rb.hardware."${hostname}" = mkEnableOption "";
|
||||
|
||||
config = mkIf cfg {
|
||||
config = mkIf cfg ({
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
loader.grub.extraConfig = ''
|
||||
|
@ -15,6 +16,10 @@ in
|
|||
terminal_input --append serial
|
||||
terminal_output --append serial
|
||||
'';
|
||||
|
||||
initrd.kernelModules = [
|
||||
"nvme"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
|
@ -33,8 +38,8 @@ in
|
|||
"/boot/efi" =
|
||||
{
|
||||
device = "/dev/disk/by-uuid/4478-6009";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
} // qemu-guest);
|
||||
}
|
||||
|
|
|
@ -9,8 +9,8 @@ inputs: {
|
|||
magic_rb = {
|
||||
grub = {
|
||||
enable = true;
|
||||
efi.enable = false;
|
||||
devices = [ "/dev/disk/by-id/scsi-360646ec4d8e14b45b588dcafaf0b511b" ];
|
||||
efi.enable = true;
|
||||
devices = [ "nodev" ];
|
||||
};
|
||||
|
||||
pins = {
|
||||
|
|
Loading…
Reference in a new issue