2024-02-25 21:05:20 +00:00
|
|
|
{ pkgs, ... }@inputs: {
|
2024-02-25 20:32:00 +00:00
|
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
|
2024-02-25 20:51:45 +00:00
|
|
|
nix.settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
auto-optimise-store = true;
|
|
|
|
};
|
|
|
|
|
2024-02-25 20:57:21 +00:00
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
|
2024-02-25 21:05:20 +00:00
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
flake = inputs.self.outPath;
|
|
|
|
flags = [
|
|
|
|
"--update-input"
|
|
|
|
"nixpkgs"
|
|
|
|
"--no-write-lock-file"
|
|
|
|
"-L" # print build logs
|
|
|
|
];
|
|
|
|
dates = "02:00";
|
|
|
|
randomizedDelaySec = "45min";
|
|
|
|
};
|
|
|
|
|
2024-02-25 20:41:57 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
kitty.terminfo
|
|
|
|
kakoune
|
|
|
|
vim
|
|
|
|
git
|
|
|
|
htop
|
|
|
|
wget
|
|
|
|
less
|
|
|
|
killall
|
|
|
|
];
|
2024-02-25 20:32:00 +00:00
|
|
|
|
2024-02-25 22:17:03 +00:00
|
|
|
systemd.network.enable = true;
|
|
|
|
systemd.network.networks."10-wan" = {
|
|
|
|
matchConfig.Name = "enp1s0";
|
|
|
|
networkConfig.DHCP = "ipv4";
|
|
|
|
address = [ "2a01:4ff:1f0:e4bd::/64" ];
|
|
|
|
routes = [{ routeConfig.Gateway = "fe80::1"; }];
|
|
|
|
};
|
|
|
|
|
2024-02-25 20:41:57 +00:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2024-02-25 20:32:00 +00:00
|
|
|
zramSwap.enable = true;
|
|
|
|
networking.hostName = "egirls";
|
|
|
|
networking.domain = "gay";
|
|
|
|
services.openssh.enable = true;
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG6udktq60NydvPg6nnZpwxvQ6scC1HkqTZIG+ORt/HN"
|
|
|
|
];
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|