refactor(nix): Move modules to modules.<system>.default structure
This commit is contained in:
parent
9cb4542b05
commit
0f741cbb36
1 changed files with 14 additions and 11 deletions
|
@ -1,14 +1,17 @@
|
|||
{
|
||||
flake.modules.nixos.default = {
|
||||
persistFiles = [ "/etc/machine-id" ];
|
||||
persistDirs = [ "/var/lib/systemd" ];
|
||||
time.timeZone = "Asia/Singapore";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
system.stateVersion = "25.11";
|
||||
};
|
||||
flake.modules.homeManager.default =
|
||||
{ osConfig, ... }:
|
||||
{
|
||||
home.stateVersion = osConfig.system.stateVersion;
|
||||
flake.modules = {
|
||||
nixos.default = {
|
||||
persistFiles = [ "/etc/machine-id" ];
|
||||
persistDirs = [ "/var/lib/systemd" ];
|
||||
time.timeZone = "Asia/Singapore";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
system.stateVersion = "25.11";
|
||||
};
|
||||
homeManager.default =
|
||||
{ osConfig, ... }:
|
||||
{
|
||||
home.stateVersion = osConfig.system.stateVersion;
|
||||
};
|
||||
darwin.default.system.stateVersion = 6;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue