nix-flake/flake.nix

69 lines
2.0 KiB
Nix
Raw Normal View History

2024-07-03 18:17:11 -04:00
{
description = "my nixos setup";
inputs = {
2025-01-05 15:15:19 -05:00
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
2024-11-07 09:44:34 -05:00
pkgsUnstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
2024-11-18 17:02:00 -05:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2024-11-18 14:29:44 -05:00
disko.url = "github:nix-community/disko/latest";
disko.inputs.nixpkgs.follows = "nixpkgs";
2024-07-03 18:17:11 -04:00
};
2024-11-18 17:02:00 -05:00
outputs = { self, nixpkgs, disko, pkgsUnstable, nixos-hardware, ... }:
2024-07-03 18:17:11 -04:00
let
system = "x86_64-linux";
2024-11-07 09:44:34 -05:00
lib = nixpkgs.lib;
unstable = pkgsUnstable.legacyPackages.${system};
2024-11-07 08:59:26 -05:00
in {
2024-07-03 18:17:11 -04:00
nixosConfigurations = {
2025-01-05 15:15:19 -05:00
vm = lib.nixosSystem {
inherit system;
specialArgs = { inherit unstable; };
modules = [
./system/vm/configuration.nix
];
};
2024-11-18 17:53:05 -05:00
my-hp = lib.nixosSystem {
2024-07-03 18:17:11 -04:00
inherit system;
2024-11-07 09:44:34 -05:00
specialArgs = { inherit unstable; };
2024-07-03 18:17:11 -04:00
modules = [
2024-11-18 20:04:56 -05:00
./system/my-hp/configuration.nix
2024-07-03 18:17:11 -04:00
];
};
2024-11-18 17:53:05 -05:00
old-hp = lib.nixosSystem {
2024-11-18 13:35:31 -05:00
inherit system;
specialArgs = { inherit unstable; };
modules = [
2024-11-18 20:04:56 -05:00
./system/old-hp/configuration.nix
2024-11-18 13:35:31 -05:00
];
};
2024-11-19 18:56:05 -05:00
macmini12 = lib.nixosSystem {
2024-11-18 17:02:00 -05:00
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
2024-11-19 18:56:05 -05:00
./system/macmini12/configuration.nix
2024-11-19 18:51:58 -05:00
];
};
2024-11-19 18:56:05 -05:00
macmini15 = lib.nixosSystem {
2024-11-19 18:51:58 -05:00
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
2024-11-19 18:56:05 -05:00
./system/macmini15/configuration.nix
2024-11-18 17:02:00 -05:00
];
};
2024-11-18 17:53:05 -05:00
moms-hp = lib.nixosSystem {
2024-07-03 18:17:11 -04:00
inherit system;
2024-11-07 09:44:34 -05:00
specialArgs = { inherit unstable; };
2024-07-03 18:17:11 -04:00
modules = [
2024-11-18 20:04:56 -05:00
./system/moms-hp/configuration.nix
2024-07-03 18:17:11 -04:00
];
};
};
};
}