From 3801b4d58d349fcaa9ab3e72317168eafd1eb19d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Thu, 30 Mar 2023 07:50:08 -0600 Subject: [PATCH] Add other web files and CUDA shell --- README.md | 9 +++++---- shell/cuda-shell.nix | 19 +++++++++++++++++++ web/cloud-ahoneybun-net.nix | 28 ++++++++++++++++++++++++++++ web/rockymtnlug-org.nix | 17 +++++++++++++++++ web/tildecafe-com.nix | 17 +++++++++++++++++ 5 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 shell/cuda-shell.nix create mode 100644 web/cloud-ahoneybun-net.nix create mode 100644 web/rockymtnlug-org.nix create mode 100644 web/tildecafe-com.nix diff --git a/README.md b/README.md index 72b60f0..53f105b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ These files are for the configuration, software that I use and unstable software - `programs.nix` : This file adds applications like Slack, Discord and virt-manager including turning on the services - `unstable.nix` : This file has the applications that need to be from unstable to work like ProtonVPN software -## Desktop Nix files: (nix-configs/desktops) +## Desktop Nix files: (nix-configs/desktops/) These files are for the desktops (DE or WM) that I use at times. @@ -18,7 +18,7 @@ These files are for the desktops (DE or WM) that I use at times. - `gnome.nix` : This file is for the desktop and login manager - `pantheon.nix` : This file is for the desktop and login manager (this removes AppCenter) -## System Nix files: (nix-configs/systems) +## System Nix files: (nix-configs/systems/) These files are for the systems themselves such as my Pinebook Pro, Raspberry Pi 4B or HP Omen. @@ -43,7 +43,7 @@ sudo nix-channel --update - `galp3-b.nix` : This file is for my personal System76 Galago Pro (galp3-b). - `galp4.nix` : This file is for my work System76 Galago Pro (galp4). -## Development Nix files: (nix-configs/dev) +## Web Nix files: (nix-configs/web/) These files are for development such as LAMP and NGINX. @@ -53,12 +53,13 @@ These files are for development such as LAMP and NGINX. - `stoners-space.nix` : This file is for Mastodon on my stoners.space domain, simple changes can be made for a different domain. - `nginx-owncast.nix` : This file is a NGINX reverse proxy for [Owncast](https://owncast.online) though it is not currently working. -## Home Manager file: (nix-configs/home) +## Home Manager file: (nix-configs/home.nix) This file is for using with [Home Manager](https://nix-community.github.io/home-manager/index.html#sec-install-standalone). - `home.nix` : This file is for settings for my user like Git name/email and other settings + ### Screenshots ![GNOME Installation](Screenshots/nixos-gnome.png) diff --git a/shell/cuda-shell.nix b/shell/cuda-shell.nix new file mode 100644 index 0000000..a51a3fb --- /dev/null +++ b/shell/cuda-shell.nix @@ -0,0 +1,19 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + name = "cuda-env-shell"; + buildInputs = with pkgs; [ + git gitRepo gnupg autoconf curl + procps gnumake util-linux m4 gperf unzip + cudatoolkit linuxPackages.nvidia_x11 + libGLU libGL + xorg.libXi xorg.libXmu freeglut + xorg.libXext xorg.libX11 xorg.libXv xorg.libXrandr zlib + ncurses5 stdenv.cc binutils + ]; + shellHook = '' + export CUDA_PATH=${pkgs.cudatoolkit} + # export LD_LIBRARY_PATH=${pkgs.linuxPackages.nvidia_x11}/lib:${pkgs.ncurses5}/lib + export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib" + export EXTRA_CCFLAGS="-I/usr/include" + ''; +} diff --git a/web/cloud-ahoneybun-net.nix b/web/cloud-ahoneybun-net.nix new file mode 100644 index 0000000..d2ed43b --- /dev/null +++ b/web/cloud-ahoneybun-net.nix @@ -0,0 +1,28 @@ +{config, pkgs, ...}: + +{ + +services.nextcloud = { + enable = true; + package = pkgs.nextcloud25; + extraApps = with pkgs.nextcloud25Packages.apps; { + inherit mail news contacts; + }; + extraAppsEnable = true; + config = { +# config.adminpassFile = "${pkgs.writeText "adminpass" "test123"}"; +# adminpassFile = "${pkgs.writeText "adminpass" "test123"}"; + adminpassFile = "/var/nextcloud-admin-pass"; + adminuser = "admin"; + defaultPhoneRegion = "US"; + }; + hostName = "cloud.ahoneybun.net"; + https = true; +}; + +services.nginx.virtualHosts.${config.services.nextcloud.hostName} = { + forceSSL = true; + enableACME = true; +}; + +} diff --git a/web/rockymtnlug-org.nix b/web/rockymtnlug-org.nix new file mode 100644 index 0000000..7ee9c49 --- /dev/null +++ b/web/rockymtnlug-org.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + services.nginx = { + enable = true; + virtualHosts = { + "rockymountainlinuxfest.org" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = "/var/www/RMFest-website"; + }; + }; + }; + }; + +} diff --git a/web/tildecafe-com.nix b/web/tildecafe-com.nix new file mode 100644 index 0000000..f499108 --- /dev/null +++ b/web/tildecafe-com.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + services.nginx = { + enable = true; + virtualHosts = { + "tildecafe.com" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = "/var/www/tildecafe"; + }; + }; + }; + }; + +}