1
Fork 0
satellite/hosts/nixos/tethys/default.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2023-01-10 02:38:06 +01:00
{ inputs, outputs, lib, config, pkgs, ... }: {
imports = [
../common/global
../common/users/adrielus.nix
../common/optional/pipewire.nix
../common/optional/touchpad.nix
../common/optional/xserver.nix
2023-03-12 05:24:25 +01:00
../common/optional/lightdm.nix
../common/optional/steam.nix
2023-02-19 22:47:42 +01:00
../common/optional/slambda.nix
../common/optional/xmonad
2023-01-10 02:38:06 +01:00
./hardware-configuration.nix
./boot.nix
];
2023-03-12 05:24:25 +01:00
# Set the name of this machine!
2023-01-10 02:38:06 +01:00
networking.hostName = "tethys";
2023-01-16 22:01:05 +01:00
# A few ad-hoc settings
2023-01-10 02:38:06 +01:00
hardware.opengl.enable = true;
2023-01-16 22:01:05 +01:00
programs.kdeconnect.enable = true;
programs.extra-container.enable = true;
2023-01-10 02:38:06 +01:00
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "22.11";
# Temp stuff:
services.postgresql = {
enable = true;
package = pkgs.postgresql_15;
enableTCPIP = true;
authentication = pkgs.lib.mkOverride 10 ''
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
initialScript = pkgs.writeText "backend-initScript" ''
CREATE ROLE adrielus WITH
LOGIN
SUPERUSER
INHERIT
CREATEDB
CREATEROLE
REPLICATION;
CREATE DATABASE lunarbox;
GRANT ALL PRIVILEGES ON DATABASE lunarbox TO adrielus;
'';
};
2023-01-10 02:38:06 +01:00
}