Compare commits

..

No commits in common. "b418c9c89286a19ccbcb79ee9062ab777b6a3b35" and "03c2f8990c286d6061ae2da7465a7febe23b6b34" have entirely different histories.

3 changed files with 20 additions and 27 deletions

View File

@ -38,8 +38,8 @@ with pkgs;
shell = "${fish}/bin/fish";
};
# Set neovim as default editor
programs.neovim.defaultEditor = true;
# Set vim as default editor
programs.vim.defaultEditor = true;
# Set timezone and synchronize NTP
time.timeZone = "Europe/Brussels";
@ -86,8 +86,17 @@ with pkgs;
];
};
# Keep logs for a week
services.journald.extraConfig = "MaxRetentionSec=1week";
# Rotate logs after 7 days
services.logrotate = {
enable = true;
settings = {
"/var/log/journal" = {
frequency = "weekly";
rotate = 7;
};
};
};
systemd.services.logrotate.startAt = lib.mkForce "daily";
# Increase inotify limits
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };

View File

@ -20,28 +20,13 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1656933710,
"narHash": "sha256-SVG8EqY1OTJWBRY4hpct2ZR2Rk0L8hCFkug3m0ABoZE=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "3bf48d3587d3f34f745a19ebc968b002ef5b5c5a",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1657447684,
"narHash": "sha256-FCP9AuU1q6PE3vOeM5SFf58f/UKPBAsoSGDUGamNBbo=",
"lastModified": 1656239181,
"narHash": "sha256-wW1xRFBn376yGloXZ4QzBE4hjipMawpV18Lshd9QSPw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5f43d8b088d3771274bcfb69d3c7435b1121ac88",
"rev": "f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5",
"type": "github"
},
"original": {
@ -53,7 +38,6 @@
"root": {
"inputs": {
"agenix": "agenix",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs"
}
}

View File

@ -10,12 +10,12 @@ in {
interfaces.eth0 = {
useDHCP = false;
ipv4.addresses = [{
address = "192.168.13.2";
address = "192.168.1.2";
prefixLength = 24;
}];
};
defaultGateway = {
address = "192.168.13.1";
address = "192.168.1.1";
interface = "eth0";
};
nameservers = [ "51.158.108.203" "195.10.195.195" ];
@ -98,7 +98,7 @@ in {
bogus-priv
no-resolv
listen-address=127.0.0.1,192.168.13.2,10.8.0.1
listen-address=127.0.0.1,192.168.1.2,10.8.0.1
bind-interfaces
cache-size=10000
@ -106,7 +106,7 @@ in {
conf-file=/var/lib/dnsmasq/dnsmasq.blacklist.txt
address=/coolneng.duckdns.org/192.168.13.2
address=/coolneng.duckdns.org/192.168.1.2
'';
};