Skip to content

Commit

Permalink
fix 🐛: dummy hardware configuration cicd
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Hang <vhvictorhang@gmail.com>
  • Loading branch information
Banh-Canh committed Oct 4, 2024
1 parent 68e0815 commit c6c0434
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 114 deletions.
39 changes: 1 addition & 38 deletions .github/workflows/build-anya.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,47 +39,10 @@ jobs:
sudo mkdir -p /etc/nixos
sudo sh -c 'cat > /etc/nixos/hardware-configuration.nix <<EOF
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/98a7284e-e47f-410d-b5d2-0987bc26ddf5";
device = "/dev/disk/by-uuid/dummy";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-c1ace451-8976-4ffe-80d8-d55f38369e36".device = "/dev/disk/by-uuid/c1ace451-8976-4ffe-80d8-d55f38369e36";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D044-D503";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
EOF'
- name: Build
Expand Down
39 changes: 1 addition & 38 deletions .github/workflows/build-nishinoya.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,47 +39,10 @@ jobs:
sudo mkdir -p /etc/nixos
sudo sh -c 'cat > /etc/nixos/hardware-configuration.nix <<EOF
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/98a7284e-e47f-410d-b5d2-0987bc26ddf5";
device = "/dev/disk/by-uuid/dummy";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-c1ace451-8976-4ffe-80d8-d55f38369e36".device = "/dev/disk/by-uuid/c1ace451-8976-4ffe-80d8-d55f38369e36";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D044-D503";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
EOF'
- name: Build
Expand Down
39 changes: 1 addition & 38 deletions .github/workflows/build-totoro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,47 +39,10 @@ jobs:
sudo mkdir -p /etc/nixos
sudo sh -c 'cat > /etc/nixos/hardware-configuration.nix <<EOF
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/98a7284e-e47f-410d-b5d2-0987bc26ddf5";
device = "/dev/disk/by-uuid/dummy";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-c1ace451-8976-4ffe-80d8-d55f38369e36".device = "/dev/disk/by-uuid/c1ace451-8976-4ffe-80d8-d55f38369e36";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D044-D503";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
EOF'
- name: Build
Expand Down

0 comments on commit c6c0434

Please sign in to comment.