multi host maybe

This commit is contained in:
voidarclabs
2026-01-04 12:08:59 +00:00
parent 70a636c513
commit 0d36888cfa
4 changed files with 128 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
{
description = "Impure NixOS flake for mobile02";
description = "Impure NixOS flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
@@ -14,7 +14,7 @@
};
outputs = { self, chataigne, nixpkgs, ... }@inputs: let
stdenv.hostPlatform.system = "x86_64-linux"; # adjust if needed
stdenv.hostPlatform.system = "x86_64-linux";
system = stdenv.hostPlatform.system;
hardwareConfig = import /etc/nixos/hardware-configuration.nix;
in
@@ -24,7 +24,21 @@
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
./configuration-laptop.nix
./common.nix
hardwareConfig
{
nixpkgs.config.allowUnfree = true;
}
];
};
nixosConfigurations.hackstation = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = [
./configuration-pc.nix
./common.nix
hardwareConfig
{
nixpkgs.config.allowUnfree = true;