mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-22 12:55:20 +08:00
beszel
This commit is contained in:
parent
9b24b422ad
commit
12778e5393
11 changed files with 71 additions and 36 deletions
|
|
@ -12,6 +12,7 @@ in
|
|||
imports = [
|
||||
self.nixosModules.default
|
||||
./configuration.nix
|
||||
(self + /modules/nixos/linux/beszel.nix)
|
||||
];
|
||||
|
||||
users.users.${flake.config.me.username}.linger = true;
|
||||
|
|
@ -36,6 +37,11 @@ in
|
|||
];
|
||||
|
||||
nix.settings.sandbox = "relaxed";
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
zramSwap.enable = true;
|
||||
swapDevices = [{
|
||||
|
|
@ -43,6 +49,11 @@ in
|
|||
size = 32 * 1024; # 32GB in megabytes
|
||||
}];
|
||||
|
||||
services.glances = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
services.tailscale.enable = true;
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue