Compare commits

...

4 Commits

Author SHA1 Message Date
coolneng b418c9c892
Replace logrotate with a journalctl option 2022-07-12 19:52:52 +02:00
coolneng a92a2e19fd
Replace vim with neovim 2022-07-12 19:52:41 +02:00
coolneng dea4242b99
Change network subnet 2022-07-12 19:52:12 +02:00
coolneng cd79dceb33
flake.lock: Update
Flake lock file updates:

• Added input 'nixos-hardware':
    'github:NixOS/nixos-hardware/3bf48d3587d3f34f745a19ebc968b002ef5b5c5a' (2022-07-04)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5' (2022-06-26)
  → 'github:NixOS/nixpkgs/5f43d8b088d3771274bcfb69d3c7435b1121ac88' (2022-07-10)
2022-07-12 19:51:17 +02:00
3 changed files with 27 additions and 20 deletions

View File

@ -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; };

View File

@ -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"
}
}

View File

@ -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
'';
};