pantheon/nix/modules/system.nix
Mohammad Rafiq 46cf93f69b
feat(nix): add system module, pass config to lib
This commit introduces a system module for NixOS and Home Manager,
and passes the configuration to the lib file.
2025-07-07 17:42:30 +08:00

10 lines
208 B
Nix

{
flake.modules.nixos.default = {
system.stateVersion = "25.11";
};
flake.modules.homeManager.default =
{ osConfig, ... }:
{
home.stateVersion = osConfig.system.stateVersion;
};
}