nix-config/flake.nix

46 lines
1.3 KiB
Nix

{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-21.11";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
};
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;
};
modules = [
./trantor.nix
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
];
};
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;
};
modules = [
./capibara.nix
home-manager.nixosModules.home-manager
impermanence.nixosModules.impermanence
];
};
};
};
}