mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
Add other web files and CUDA shell
This commit is contained in:
parent
09e4163b2d
commit
3801b4d58d
5 changed files with 86 additions and 4 deletions
|
@ -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
|
- `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
|
- `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.
|
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
|
- `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)
|
- `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.
|
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).
|
- `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).
|
- `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.
|
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.
|
- `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.
|
- `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).
|
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
|
- `home.nix` : This file is for settings for my user like Git name/email and other settings
|
||||||
|
|
||||||
### Screenshots
|
### Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
19
shell/cuda-shell.nix
Normal file
19
shell/cuda-shell.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
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"
|
||||||
|
'';
|
||||||
|
}
|
28
web/cloud-ahoneybun-net.nix
Normal file
28
web/cloud-ahoneybun-net.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
17
web/rockymtnlug-org.nix
Normal file
17
web/rockymtnlug-org.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"rockymountainlinuxfest.org" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
root = "/var/www/RMFest-website";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
17
web/tildecafe-com.nix
Normal file
17
web/tildecafe-com.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"tildecafe.com" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
root = "/var/www/tildecafe";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue