add openmodelica

This commit is contained in:
2026-05-07 17:40:59 +09:00
parent 142038a7b5
commit 097ad8118e
8 changed files with 189 additions and 27 deletions

View File

@@ -17,19 +17,39 @@
};
outputs =
{ self, nixpkgs, home-manager, split-monitor-workspaces, ... }@inputs:
{
self,
nixpkgs,
home-manager,
split-monitor-workspaces,
...
}@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
config = {
allowUnfree = true;
};
};
in {
in
{
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
inherit system;
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;