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.
This commit is contained in:
Mohammad Rafiq 2025-07-07 07:58:15 +08:00
parent 253b46eee0
commit de72f9a869
No known key found for this signature in database
4 changed files with 25 additions and 6 deletions

10
nix/modules/system.nix Normal file
View file

@ -0,0 +1,10 @@
{
flake.modules.nixos.default = {
system.stateVersion = "25.11";
};
flake.modules.homeManager.default =
{ osConfig, ... }:
{
home.stateVersion = osConfig.system.stateVersion;
};
}