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 | |
parent | Fix missing import (diff) | |
download | Rory-Open-Architecture-0bc421df4109533cc56626c10e29ebe105d25355.tar.xz |
Add dev env
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
-rw-r--r-- | flake.nix | 7 | ||||
-rw-r--r-- | host/Rory-devenv/configuration.nix | 94 | ||||
-rw-r--r-- | modules/users/Rory.nix | 2 |
3 files changed, 102 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix index e8786d6..675a737 100644 --- a/flake.nix +++ b/flake.nix @@ -48,6 +48,13 @@ ./hardware-configuration.nix ]; }; + Rory-devenv = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./host/Rory-devenv/configuration.nix + ./hardware-configuration.nix + ]; + }; }; }; } \ No newline at end of file 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! +} + diff --git a/modules/users/Rory.nix b/modules/users/Rory.nix index b5c0dae..1ee825c 100644 --- a/modules/users/Rory.nix +++ b/modules/users/Rory.nix @@ -7,7 +7,7 @@ extraGroups = [ "wheel" ]; packages = with pkgs; [ ]; - #initialPassword = "password"; + initialPassword = "password"; openssh.authorizedKeys.keys = [ #"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCpmQMHBFOpLfb0Y138VUK1p4FxEPSOz5FRpDK8/eOFwBmEKDjLnT4d/e/Rz2VknCTSKXLMZ4KBMYM014NW3SZR90cDAFwlkdSX638fQlEO3usfALNLWsLbzqzkufw6PKWqrybZvlpwjcacYlRItvit/GH7FLqfiT/G6BdyBErn/lmmcBxF0So0aeba2G/xf7BPPQqqaTqQgE9ml87fdFVw4zVcix823K92SQIx7PkSInpgJwqjLR8cVkL2lkvMdq6IjAEsHAiUYNbAQTUl6xhYa6+Cl8CdvCyINzCpWS3Md2rSH84dZEq0ymZ40orF9JZbHHPgSGFbrg5PUOuJ57iaCPK20z474q2APUJ7aQXiifToZKqcWHFHCj7hqWja1rEt3rQbqRPgttSg5aP3lQ3GXbR/XhdcSYln1QpPTCBxklrfN1P6hF6lWBtGhtGzOvZ5Lt1uofdsK71k5eMwYHTcBnVaMtxbYzR9ihFN6LCNvvnrj+2NvHOiYSCr+y3G4kk= thearcanebrony@DESKTOP-RMRJ2VG" #"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICT+53Hy3wbIlNVIomK2RroaimMWrTlUkndjHt1dFuyh root@pfSense-arcane-home.localdomain" |