This commit is contained in:
2026-05-07 22:02:02 +09:00
parent c9a3fe28fb
commit c64cfb5e83
2 changed files with 516 additions and 19 deletions

View File

@@ -11,27 +11,38 @@
};
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
({ 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;
in {
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
home-manager.users.allen = import ./home.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 {
inherit inputs;
inherit pkgs;
};
}
];
};