perf: Home-manager to module

feat: Optionise config
This commit is contained in:
2026-08-19 21:41:35 +03:00
committed by Sweetbread
parent 1111288a47
commit fe7d4c1851
97 changed files with 395 additions and 488 deletions
+20
View File
@@ -0,0 +1,20 @@
{ lib, inputs, hostname }: {
imports = [
inputs.sops-nix.nixosModules.sops
../${hostname}/hardware-configuration.nix
../../modules/host.nix
./packages.nix
];
options = {
host.laptop = lib.mkEnableOption "laptop mode";
};
config = {
networking.hostName = hostname;
time.timeZone = lib.mkDefault "Europe/Moscow";
i18n.defaultLocale = lib.mkDefault "ru_RU.UTF-8";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "23.05";
};
}