53 lines
1.5 KiB
Nix
Executable File
53 lines
1.5 KiB
Nix
Executable File
{
|
|
description = "my nixos setup";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
|
|
pkgsUnstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
disko.url = "github:nix-community/disko/latest";
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, disko, pkgsUnstable, nixos-hardware, ... }:
|
|
let
|
|
system = "x86_64-linux";
|
|
lib = nixpkgs.lib;
|
|
unstable = pkgsUnstable.legacyPackages.${system};
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
vincents-hp = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit unstable; };
|
|
modules = [
|
|
./system/vincents-hp/configuration.nix
|
|
];
|
|
};
|
|
vincents-old-hp = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit unstable; };
|
|
modules = [
|
|
./system/vincents-old-hp/configuration.nix
|
|
];
|
|
};
|
|
2012macmini = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit unstable; };
|
|
modules = [
|
|
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
|
nixos-hardware.nixosModules.apple-macmini-4-1
|
|
./system/2012macmini/configuration.nix
|
|
];
|
|
};
|
|
susans-hp = lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit unstable; };
|
|
modules = [
|
|
./system/susans-hp/configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|