Files
company-nix/flake.nix
2026-03-18 17:41:10 +01:00

50 lines
1.2 KiB
Nix

{
description = "NodeiWest employee and workstation flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
deployment = {
url = "git+file:../nix-deployment";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{
self,
nixpkgs,
deployment,
...
}:
let
lib = nixpkgs.lib;
supportedSystems = [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems = lib.genAttrs supportedSystems;
in
{
homeManagerModules.default = ./modules/home.nix;
homeManagerModules.helpers = ./modules/helpers/home.nix;
packages = forAllSystems (system: {
nodeiwest-helper = deployment.packages.${system}.nodeiwest-helper;
default = self.packages.${system}.nodeiwest-helper;
});
apps = forAllSystems (system: {
nodeiwest-helper = {
type = "app";
program = "${self.packages.${system}.nodeiwest-helper}/bin/nodeiwest";
};
default = self.apps.${system}.nodeiwest-helper;
});
};
}