dotfiles/entropy/nixos/flake.nix

44 lines
1.2 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-01-26 13:56:59 +00:00
url = "github:Feliix42/mlir.nix/main";
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 ];
})
];
};
};
};
}