mirror of
https://github.com/Feliix42/dotfiles.git
synced 2024-11-22 14:06:30 +00:00
44 lines
1.3 KiB
Nix
44 lines
1.3 KiB
Nix
{
|
|
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 = {
|
|
#url = "github:Feliix42/mlir.nix/main";
|
|
url = "github:Feliix42/mlir.nix/circt";
|
|
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 ];
|
|
})
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|