dotfiles/modules/nixos/system/default.nix

23 lines
332 B
Nix
Raw Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
{
2022-07-26 03:15:26 +00:00
2024-04-20 13:42:06 +00:00
imports = [
./auto-upgrade.nix
./doas.nix
./journald.nix
./user.nix
./timezone.nix
];
2022-07-26 03:15:26 +00:00
2022-12-21 21:18:03 +00:00
config = lib.mkIf pkgs.stdenv.isLinux {
# Pin a state version to prevent warnings
2024-04-20 13:42:06 +00:00
system.stateVersion = config.home-manager.users.${config.user}.home.stateVersion;
2022-12-21 21:18:03 +00:00
};
2022-07-26 03:15:26 +00:00
}