1
Fork 0

Modified nvim setup a bit + installed game apps (steam, lutris, etc)

This commit is contained in:
Matei Adriel 2023-04-25 16:35:09 +03:00
parent ed7dbca71c
commit b24d90dfbd
No known key found for this signature in database
20 changed files with 184 additions and 37 deletions
hosts/nixos
common/optional
tethys

View file

@ -1,8 +0,0 @@
# Not using this for now, because I cannot get any theme to fucking work with it for some reason :(
{
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
};
}

View file

@ -0,0 +1,14 @@
# TODO(imperanence): handle persistence
{ lib, ... }: {
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-runtime"
];
}

View file

@ -7,8 +7,9 @@
../common/optional/touchpad.nix
../common/optional/xserver.nix
../common/optional/lightdm.nix
../common/optional/xmonad
../common/optional/steam.nix
../common/optional/slambda.nix
../common/optional/xmonad
./hardware-configuration.nix
./boot.nix
@ -20,14 +21,31 @@
# A few ad-hoc settings
hardware.opengl.enable = true;
programs.kdeconnect.enable = true;
programs.extra-container.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "22.11";
# Temp stuff:
containers.euporie = import ../euoprie;
programs.gnupg.agent = {
services.postgresql = {
enable = true;
enableSSHSupport = 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;
'';
};
}