migrate most of the nixos system

This commit is contained in:
Satria 2026-02-01 16:54:44 +07:00
commit e7f0cdb4a2
8 changed files with 426 additions and 1 deletions

25
modules/system/base.nix Normal file
View file

@ -0,0 +1,25 @@
{ hostname, timezone, ... }: {
system.stateVersion = "24.11";
imports = [ ./apps.nix ];
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d -d";
};
optimise.automatic = true;
};
networking.hostName = "${hostname}";
time.timeZone = timezone;
services = {
openssh.enable = true;
tailscale.enable = true;
};
}