40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{
|
|
description = "A simple NixOS flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
helix.url = "github:helix-editor/helix/master";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
|
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./configuration.nix
|
|
|
|
({ pkgs, ... }: {
|
|
# Define the overlay inline or in a separate file
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
openmodelica = final.callPackage ./nixpkgs/openmodelica.nix { };
|
|
})
|
|
];
|
|
})
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.allen = import ./home.nix;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|