flakes/modules/system/base.nix

28 lines
968 B
Nix
Raw Permalink Normal View History

2025-03-23 11:52:43 +11:00
{ config, inputs, modules, ... }: {
imports = [ modules.binds modules.options ];
2025-03-23 11:52:43 +11:00
environment.etc = {
2022-08-09 15:17:30 +07:00
"machine-id".source = "/persist/machine-id";
"ssh/ssh_host_rsa_key".source = "/persist/ssh_host_rsa_key";
"ssh/ssh_host_rsa_key.pub".source = "/persist/ssh_host_rsa_key.pub";
"ssh/ssh_host_ed25519_key".source = "/persist/ssh_host_ed25519_key";
"ssh/ssh_host_ed25519_key.pub".source = "/persist/ssh_host_ed25519_key.pub";
};
environment.pathsToLink = [ "/share/zsh" ];
2025-03-17 18:17:59 +11:00
i18n.defaultLocale = "en_AU.UTF-8";
2025-06-17 19:59:37 +10:00
i18n.extraLocales = [ "en_GB.UTF-8/UTF-8" ];
users.mutableUsers = false;
2021-07-15 20:30:12 +07:00
system = {
configurationRevision = inputs.self.rev;
nixos = rec {
version = config.system.nixos.release + versionSuffix;
versionSuffix = "-${config.system.name}.r${builtins.toString inputs.self.revCount}.${inputs.self.shortRev}";
};
};
nix.registry.config.flake = inputs.self;
nix.registry.shells.flake = inputs.self;
2021-07-15 20:30:12 +07:00
}