nix-config/flake.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

2022-02-23 12:40:21 +01:00
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2022-03-05 18:52:59 +01:00
nixpkgs-stable.url = "nixpkgs/nixos-21.11";
2022-02-23 12:40:21 +01:00
home-manager = {
2022-03-05 18:52:59 +01:00
url = "github:nix-community/home-manager/master";
2022-02-23 12:40:21 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
};
2022-03-05 18:52:59 +01:00
outputs =
{ self, nixpkgs, nixpkgs-stable, home-manager, impermanence }@inputs: {
nixosConfigurations = {
trantor = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
# unstablePkgs = nixpkgs-unstable.legacyPackages."x86_64-linux";
impermanence = impermanence;
};
2022-02-23 12:40:21 +01:00
2022-03-05 18:52:59 +01:00
modules = [
./trantor.nix
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
];
};
2022-02-23 12:40:21 +01:00
2022-03-05 18:52:59 +01:00
capibara = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
# unstablePkgs = nixpkgs-unstable.legacyPackages."x86_64-linux";
stablePkgs = nixpkgs-stable.legacyPackages."x86_64-linux";
impermanence = impermanence;
};
2022-02-23 12:40:21 +01:00
2022-03-05 18:52:59 +01:00
modules = [
./capibara.nix
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
];
};
2022-02-23 12:40:21 +01:00
};
};
}