Compare commits
4 Commits
03c2f8990c
...
b418c9c892
Author | SHA1 | Date |
---|---|---|
coolneng | b418c9c892 | |
coolneng | a92a2e19fd | |
coolneng | dea4242b99 | |
coolneng | cd79dceb33 |
|
@ -38,8 +38,8 @@ with pkgs;
|
|||
shell = "${fish}/bin/fish";
|
||||
};
|
||||
|
||||
# Set vim as default editor
|
||||
programs.vim.defaultEditor = true;
|
||||
# Set neovim as default editor
|
||||
programs.neovim.defaultEditor = true;
|
||||
|
||||
# Set timezone and synchronize NTP
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
@ -86,17 +86,8 @@ with pkgs;
|
|||
];
|
||||
};
|
||||
|
||||
# Rotate logs after 7 days
|
||||
services.logrotate = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"/var/log/journal" = {
|
||||
frequency = "weekly";
|
||||
rotate = 7;
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.services.logrotate.startAt = lib.mkForce "daily";
|
||||
# Keep logs for a week
|
||||
services.journald.extraConfig = "MaxRetentionSec=1week";
|
||||
|
||||
# Increase inotify limits
|
||||
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
|
||||
|
|
22
flake.lock
22
flake.lock
|
@ -20,13 +20,28 @@
|
|||
"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": 1656239181,
|
||||
"narHash": "sha256-wW1xRFBn376yGloXZ4QzBE4hjipMawpV18Lshd9QSPw=",
|
||||
"lastModified": 1657447684,
|
||||
"narHash": "sha256-FCP9AuU1q6PE3vOeM5SFf58f/UKPBAsoSGDUGamNBbo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5",
|
||||
"rev": "5f43d8b088d3771274bcfb69d3c7435b1121ac88",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -38,6 +53,7 @@
|
|||
"root": {
|
||||
"inputs": {
|
||||
"agenix": "agenix",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,12 +10,12 @@ in {
|
|||
interfaces.eth0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [{
|
||||
address = "192.168.1.2";
|
||||
address = "192.168.13.2";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
defaultGateway = {
|
||||
address = "192.168.1.1";
|
||||
address = "192.168.13.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.1.2,10.8.0.1
|
||||
listen-address=127.0.0.1,192.168.13.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.1.2
|
||||
address=/coolneng.duckdns.org/192.168.13.2
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue