2024-02-25 21:05:20 +00:00
|
|
|
{ pkgs, ... }@inputs: {
|
2024-02-29 21:08:22 +00:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./misskey-service.nix
|
|
|
|
./heartles-xyz-proxy.nix
|
2024-02-29 22:12:46 +00:00
|
|
|
./ogdo.nix
|
2024-04-30 19:43:13 +00:00
|
|
|
./postfix.nix
|
2024-02-29 21:08:22 +00:00
|
|
|
];
|
2024-02-25 20:32:00 +00:00
|
|
|
|
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-03-03 19:29:09 +00:00
|
|
|
screen
|
2024-02-25 20:41:57 +00:00
|
|
|
];
|
2024-02-25 20:32:00 +00:00
|
|
|
|
2024-02-26 00:09:54 +00:00
|
|
|
users.users.jaina = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
};
|
|
|
|
|
2024-02-25 22:17:03 +00:00
|
|
|
systemd.network.enable = true;
|
2024-06-14 01:02:22 +00:00
|
|
|
networking.useNetworkd = true;
|
2024-02-25 22:17:03 +00:00
|
|
|
systemd.network.networks."10-wan" = {
|
|
|
|
matchConfig.Name = "enp1s0";
|
|
|
|
networkConfig.DHCP = "ipv4";
|
|
|
|
address = [ "2a01:4ff:1f0:e4bd::/64" ];
|
|
|
|
routes = [{ routeConfig.Gateway = "fe80::1"; }];
|
|
|
|
};
|
2024-06-14 01:17:13 +00:00
|
|
|
networking.interfaces."enp1s0".useDHCP = true;
|
2024-02-25 22:17:03 +00:00
|
|
|
|
2024-02-25 20:41:57 +00:00
|
|
|
boot.tmp.cleanOnBoot = true;
|
2024-06-14 01:18:44 +00:00
|
|
|
boot.loader.grub.device = "/dev/sda";
|
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"
|
|
|
|
];
|
2024-02-27 20:56:01 +00:00
|
|
|
services.openssh.settings.PasswordAuthentication = false;
|
2024-02-27 20:57:38 +00:00
|
|
|
services.openssh.ports = [ 9922 ];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 9922 ];
|
2024-04-20 09:14:15 +00:00
|
|
|
services.atd.enable = true;
|
2024-02-25 20:32:00 +00:00
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|