restructure hosts

This commit is contained in:
lucy 2026-10-02 23:59:05 +02:00
commit 539465abf4
3 changed files with 56 additions and 6 deletions

View file

@ -24,17 +24,34 @@
nix-maid,
mangowm,
}:
let
mods = [
nixcord.nixosModules.nixcord
mangowm.nixosModules.mango
./configuration.nix
./maid.nix
];
in
{
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
nixcord.nixosModules.nixcord
nix-maid.nixosModules.default
mangowm.nixosModules.mango
./configuration.nix
./maid.nix
];
./hosts/desktop/hardware-configuration.nix
] ++ mods;
({ config, ...}: {
networking.hostname = "nerv";
});
};
};
nixosConfigurations.seele = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
./hosts/laptop/hardware-configuration.nix
] ++ mods;
({ config, ...}: {
networking.hostname = "seele";
});
}
}

View file

@ -0,0 +1,33 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/629196f0-60e9-476e-b294-0d22fd7279c4";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2474-C1E6";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/166d1fb4-527f-4fda-a6bf-85aad4a4f917"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}