This commit is contained in:
2026-03-06 12:00:46 +01:00
parent 48410afbee
commit 82f13393ff
3 changed files with 11 additions and 15 deletions

View File

@@ -1,5 +1,10 @@
{ inputs, config, ... }: { { inputs, config, ... }: {
flake.nixosModules.computer-mo = { ... }: { flake.nixosConfigurations."computer-mo" = inputs.self.lib.mkHost {
system = "x86_64-linux";
host = "computer-mo";
};
flake.nixosModules.computer-mo = { system, ... }: {
imports = with inputs.self.nixosModules; [ imports = with inputs.self.nixosModules; [
apps-sys-brave apps-sys-brave
apps-sys-onepassword apps-sys-onepassword
@@ -30,5 +35,10 @@
gnome-usr-gnome-mo gnome-usr-gnome-mo
security-usr-sopsnix security-usr-sopsnix
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "loglevel=3" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" ];
nixpkgs.hostPlatform = system;
hardware.cpu.amd.updateMicrocode = true;
}; };
} }

View File

@@ -1,8 +0,0 @@
{ ... }: {
flake.nixosModules.computer-mo = { system, ... }: {
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.kernelParams = [ "quiet" "splash" "boot.shell_on_fail" "loglevel=3" "rd.systemd.show_status=false" "rd.udev.log_level=3" "udev.log_priority=3" ];
nixpkgs.hostPlatform = system;
hardware.cpu.amd.updateMicrocode = true;
};
}

View File

@@ -1,6 +0,0 @@
{ inputs, ... }: {
flake.nixosConfigurations."computer-mo" = inputs.self.lib.mkHost {
system = "x86_64-linux";
host = "computer-mo";
};
}