diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-01-02 04:29:48 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-01-02 04:29:48 +0100 |
commit | 0bc421df4109533cc56626c10e29ebe105d25355 (patch) | |
tree | 45b1fc4ae7fe5fb38df99c12d6d87b9b985f8f06 /host | |
parent | Fix missing import (diff) | |
download | Rory-Open-Architecture-0bc421df4109533cc56626c10e29ebe105d25355.tar.xz |
Add dev env
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'host')
-rw-r--r-- | host/Rory-devenv/configuration.nix | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/host/Rory-devenv/configuration.nix b/host/Rory-devenv/configuration.nix new file mode 100644 index 0000000..3831d4f --- /dev/null +++ b/host/Rory-devenv/configuration.nix @@ -0,0 +1,94 @@ +{ config, pkgs, lib, ... }: + +{ + imports = + [ + ../../modules/base-server.nix + ]; + + networking = { + hostName = "Rory-devenv"; + interfaces.ens18.ipv4.addresses = [ { + address = "192.168.1.254"; + prefixLength = 24; + } ]; + }; + + # environment.systemPackages = with pkgs; [ + # postgresql + # ]; + systemd.tmpfiles.rules = [ "d /data/pg 0750 postgres postgres" ]; + + services = { + postgresql = { + enable = true; + package = pkgs.postgresql_14; + enableTCPIP = true; + authentication = pkgs.lib.mkOverride 10 '' + # TYPE, DATABASE, USER, ADDRESS, METHOD + local all all trust + host all all 127.0.0.1/32 trust + host all all ::1/128 trust + host all all 0.0.0.0/0 md5 + ''; + # initialScript = pkgs.writeText "backend-initScript" '' + # CREATE ROLE nixcloud WITH LOGIN PASSWORD 'nixcloud' CREATEDB; + # CREATE DATABASE nixcloud; + # GRANT ALL PRIVILEGES ON DATABASE nixcloud TO nixcloud; + # ''; + + # we dont care about data here - this is a dev env + #dataDir = "/data/pg"; + settings = { + "max_connections" = "100"; + "shared_buffers" = "128MB"; + "max_wal_size" = "1GB"; + "min_wal_size" = "80MB"; + }; + }; + xserver = { + enable = true; + desktopManager.plasma5 = { + enable = true; + phonon-backend = "gstreamer"; + excludePackages = [ pkgs.kdeApplications.konsole ]; + }; + displayManager.sddm.enable = true; + displayManager.sddm.autoLogin = { + enable = true; + user = "Rory"; + }; + libinput.enable = true; + + }; + }; + + users.users = { + Rory = { + packages = with pkgs; [ + + ]; + } + }; + + environment.systemPackages = with pkgs; [ + zsh + gnome-console + kitty + feh + lsd + sshfs + cinnamon.nemo + firefox-bin + udisks + gparted + glxinfo + vim-plugins.vim-nix + ]; + fonts.fonts = with pkgs; [ + (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) + ]; + + system.stateVersion = "22.11"; # DO NOT EDIT! +} + |