NixOS-Configuration/flake.nix

38 lines
753 B
Nix
Raw Normal View History

2024-01-09 17:29:12 +00:00
{
description = "My nixos config as a flake";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
2024-01-15 05:16:28 +00:00
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
2024-01-09 17:29:12 +00:00
};
2024-01-15 05:16:28 +00:00
outputs = { self, nixpkgs, nixpkgs-unstable }: {
2024-01-09 17:29:12 +00:00
nixosConfigurations = {
2024-01-15 05:16:28 +00:00
nixos = nixpkgs-unstable.lib.nixosSystem {
2024-01-09 17:29:12 +00:00
system = "x86_64-linux";
2024-01-15 05:16:28 +00:00
specialArgs = {
inherit self;
nixpkgs = nixpkgs-unstable;
};
2024-01-09 17:29:12 +00:00
modules = [
2024-01-10 00:41:10 +00:00
./hosts/nixos/configuration.nix
2024-01-09 17:29:12 +00:00
];
};
2024-01-15 05:16:28 +00:00
nixserver = nixpkgs.lib.nixosSystem {
2024-01-10 23:07:25 +00:00
system = "x86_64-linux";
2024-01-15 05:16:28 +00:00
specialArgs = {
inherit self nixpkgs;
};
2024-01-10 23:07:25 +00:00
modules = [
./hosts/nixserver/configuration.nix
];
};
2024-01-09 17:29:12 +00:00
};
};
}