dotfiles/entropy/nixos/flake.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2023-01-24 09:43:41 +00:00
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
#home-manager = {
#url = "github:nix-community/home-manager";
#inputs.nixpkgs.follows = "nixpkgs";
#};
mlir = {
2023-03-15 15:10:45 +00:00
#url = "github:Feliix42/mlir.nix/main";
url = "github:Feliix42/mlir.nix/circt";
2023-01-24 09:43:41 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
# TODO: define nixos-unstable and nixos-hardware as dependencies here
# outputs = inputs@{ nixpkgs, nixos-hardware, home-manager, mlir, ... }: {
outputs = inputs@{ nixpkgs, nixos-hardware, mlir, ... }: {
nixosConfigurations = {
entropy = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
nixos-hardware.nixosModules.lenovo-thinkpad-t14
#home-manager.nixosModules.home-manager
#{
#home-manager.useGlobalPkgs = true;
#home-manager.useUserPackages = true;
#home-manager.users.jdoe = import ./home.nix;
## Optionally, use home-manager.extraSpecialArgs to pass
## arguments to home.nix
#}
(_: {
nixpkgs.overlays = [ mlir.overlay ];
})
];
};
};
};
}