49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ modulesPath, nixosModules, agenix, pkgs, config, ... }: {
|
|
imports = [
|
|
"${modulesPath}/virtualisation/amazon-image.nix"
|
|
nixosModules.nano
|
|
nixosModules.nettika
|
|
nixosModules.promptmoji
|
|
agenix.nixosModules.default
|
|
./matrix.nix
|
|
];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
nix.settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
trusted-users = [ "@wheel" ];
|
|
};
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
users.defaultUserShell = pkgs.fish;
|
|
|
|
networking = {
|
|
hostName = "quasar";
|
|
networkmanager.enable = true;
|
|
firewall.allowedTCPPorts = [ 80 443 ];
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.htop ];
|
|
|
|
services.postgresql.enable = true;
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."quasar.leaf.ninja".extraConfig = ''
|
|
respond "quasar is online"
|
|
header Strict-Transport-Security: "max-age=63072000; includeSubDomains"
|
|
'';
|
|
};
|
|
|
|
programs.fish.enable = true;
|
|
|
|
promptSymbol = "🌟";
|
|
|
|
documentation.man.generateCaches = false;
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|