mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
better logic
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
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 = "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
networking.hostName = "computer-mo";
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
{ inputs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
user = "mo";
|
||||
host = "computer-mo";
|
||||
|
||||
mkHost = inputs.self.lib.mkHost;
|
||||
in
|
||||
{
|
||||
flake.nixosConfigurations = {
|
||||
computer-mo = mkHost {
|
||||
user = "mo";
|
||||
extraModules = [ inputs.self.nixosModules.computer-mo ];
|
||||
};
|
||||
flake.nixosConfigurations.${host} = mkHost {
|
||||
inherit system user host;
|
||||
extraModules = [ inputs.self.nixosModules.${host} ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user