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:
parent
253b46eee0
commit
de72f9a869
4 changed files with 25 additions and 6 deletions
10
nix/modules/system.nix
Normal file
10
nix/modules/system.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
flake.modules.nixos.default = {
|
||||
system.stateVersion = "25.11";
|
||||
};
|
||||
flake.modules.homeManager.default =
|
||||
{ osConfig, ... }:
|
||||
{
|
||||
home.stateVersion = osConfig.system.stateVersion;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue