restructure hosts
This commit is contained in:
parent
1461fc1fcf
commit
539465abf4
3 changed files with 56 additions and 6 deletions
29
flake.nix
29
flake.nix
|
|
@ -24,17 +24,34 @@
|
||||||
nix-maid,
|
nix-maid,
|
||||||
mangowm,
|
mangowm,
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
mods = [
|
||||||
|
nixcord.nixosModules.nixcord
|
||||||
|
mangowm.nixosModules.mango
|
||||||
|
./configuration.nix
|
||||||
|
./maid.nix
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nerv = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
nixcord.nixosModules.nixcord
|
./hosts/desktop/hardware-configuration.nix
|
||||||
nix-maid.nixosModules.default
|
] ++ mods;
|
||||||
mangowm.nixosModules.mango
|
({ config, ...}: {
|
||||||
./configuration.nix
|
networking.hostname = "nerv";
|
||||||
./maid.nix
|
});
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
nixosConfigurations.seele = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
system = "x86_64-linux";
|
||||||
|
modules = [
|
||||||
|
./hosts/laptop/hardware-configuration.nix
|
||||||
|
] ++ mods;
|
||||||
|
({ config, ...}: {
|
||||||
|
networking.hostname = "seele";
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
33
hosts/laptop/hardware-configuration.nix
Normal file
33
hosts/laptop/hardware-configuration.nix
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue