flakes/base-system/flake.nix

37 lines
686 B
Nix

{
description = "Nix flake for basic configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = inputs@{nixpkgs, ...}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in
{
nixosConfigurations = {
nixdesktop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system; };
modules = [
./desktop-config.nix
];
};
nixsurface = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system; };
modules = [
./surface-config.nix
];
}
};
};
}