migrate most of the nixos system
This commit is contained in:
parent
c06032eb48
commit
e7f0cdb4a2
8 changed files with 426 additions and 1 deletions
25
modules/system/base.nix
Normal file
25
modules/system/base.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue