summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-01-21 18:18:02 +0100
committerRory& <root@rory.gay>2025-01-21 18:18:02 +0100
commit245d99e4560f8e9f0024ed6c8540ccdfa02a1807 (patch)
tree79678cfc7ee5ec78139eac6b4c5f77198938ffc4 /host
parentServer updates & changes (diff)
downloadRory-Open-Architecture-245d99e4560f8e9f0024ed6c8540ccdfa02a1807.tar.xz
Move packages to top level directory
Diffstat (limited to 'host')
-rw-r--r--host/Arc/configuration.nix43
-rw-r--r--host/Arc/hacks/drm-amd-3437.patch13
-rw-r--r--host/Rory-desktop/configuration.nix24
-rw-r--r--host/Rory-desktop/nginx.nix2
-rwxr-xr-xhost/Rory-nginx/services/nginx/nginx.nix2
-rw-r--r--host/Rory-portable/configuration.nix25
-rw-r--r--host/Rory-wsl/configuration.nix4
-rw-r--r--host/RoryNix/configuration.nix4
8 files changed, 24 insertions, 93 deletions
diff --git a/host/Arc/configuration.nix b/host/Arc/configuration.nix

index c8fe0fd..45b1945 100644 --- a/host/Arc/configuration.nix +++ b/host/Arc/configuration.nix
@@ -1,9 +1,7 @@ -args@{ +{ config, pkgs, lib, - nhekoSrc, - mtxclientSrc, ... }: @@ -11,13 +9,10 @@ args@{ imports = [ # base imports ../../modules/base-client.nix - ../../modules/packages/vim.nix + ../../packages/vim.nix ../../modules/users/Arci.nix - # hardware-specific imports ./optional/hardware-specific/nvidia.nix - - #./optional/gui/x11.nix ./optional/gui/wayland.nix ]; @@ -43,19 +38,6 @@ args@{ ZSH_DISABLE_COMPFIX = "true"; }; - services.udev.extraRules = '' - #SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0664", GROUP="users" - # SDP protocol - KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", MODE="0666" - ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", MODE="0666" - ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0666" - # Flashloader - KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", MODE="0666" - # Controller - KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="18d1", MODE="0666" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", MODE="0660", TAG+="uaccess" - ''; - networking = { hostName = "Arc"; networkmanager.enable = true; @@ -106,7 +88,7 @@ args@{ jack.enable = true; alsa.enable = true; }; - + desktopManager.plasma6.enable = true; }; @@ -129,12 +111,10 @@ args@{ gimp # - Languages - #dotnet-sdk_8 dotnetCorePackages.sdk_9_0 #games osu-lazer-bin - #steam steam-run steam-acf @@ -144,7 +124,7 @@ args@{ nemo file-roller firefox-bin - ungoogled-chromium #needed for Rider in order to debug WASM + ungoogled-chromium # needed for Rider in order to debug WASM unrar-wrapper mangohud @@ -167,7 +147,7 @@ args@{ extraPortals = with pkgs; [ #xdg-desktop-portal-gtk xdg-desktop-portal-xapp - # (callPackage ../../modules/packages/xdg-desktop-portal-gtk.nix { }) + # (callPackage ../../packages/xdg-desktop-portal-gtk.nix { }) ]; config = { common = { @@ -184,7 +164,6 @@ args@{ }; fonts = { packages = with pkgs; [ - #(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) nerd-fonts.jetbrains-mono noto-fonts-monochrome-emoji ]; @@ -192,8 +171,6 @@ args@{ fontconfig.defaultFonts.sansSerif = with pkgs; [ "JetBrainsMonoNL Nerd Font,JetBrainsMonoNL NF:style=Regular" ]; fontconfig.defaultFonts.serif = with pkgs; [ "JetBrainsMonoNL Nerd Font,JetBrainsMonoNL NF:style=Regular" ]; fontconfig.defaultFonts.emoji = with pkgs; [ "freefont" ]; - enableDefaultPackages = lib.mkForce false; - enableGhostscriptFonts = lib.mkForce false; }; nixpkgs = { @@ -218,12 +195,6 @@ args@{ programs.dconf.enable = true; - #networking.wireguard.interfaces = { - # wg-KP-Ran = { - - #}; - # }; - virtualisation.libvirtd.enable = true; programs.virt-manager.enable = true; @@ -246,10 +217,6 @@ args@{ services.pcscd.enable = true; virtualisation.vmVariant = { - users = { - mutableUsers = false; - users.Rory.password = "password"; - }; networking.interfaces.enp34s0 = lib.mkForce { }; }; diff --git a/host/Arc/hacks/drm-amd-3437.patch b/host/Arc/hacks/drm-amd-3437.patch deleted file mode 100644
index 1867762..0000000 --- a/host/Arc/hacks/drm-amd-3437.patch +++ /dev/null
@@ -1,13 +0,0 @@ -diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c -index c556c8b653fa..272ad5e4a328 100644 ---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c -+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c -@@ -180,7 +180,7 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) - * When GTT is just an alternative to VRAM make sure that we - * only use it as fallback and still try to fill up VRAM first. - */ -- if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM) -+ if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM && !(adev->flags & AMD_IS_APU)) - places[c].flags |= TTM_PL_FLAG_FALLBACK; - c++; - } \ No newline at end of file diff --git a/host/Rory-desktop/configuration.nix b/host/Rory-desktop/configuration.nix
index 95c9775..29004c3 100644 --- a/host/Rory-desktop/configuration.nix +++ b/host/Rory-desktop/configuration.nix
@@ -12,10 +12,11 @@ args@{ # base imports ../../modules/base-client.nix # (import ../../modules/base-secrets.nix { path = "/home/rory/.config/sops/config.yaml"; }) - ../../modules/packages/vim.nix + ../../packages/vim.nix # ../../modules/environments/home.nix ../../modules/software-templates/profilers.nix ../../modules/software-templates/dotnet.client.nix + ../../modules/hardware/google-stadia-controller.nix ./postgres.nix ./nginx.nix @@ -27,7 +28,7 @@ args@{ ./optional/gui/wayland.nix ./printing.nix - ./ollama.nix + #./ollama.nix ]; boot = { @@ -60,18 +61,7 @@ args@{ ZSH_DISABLE_COMPFIX = "true"; }; - services.udev.extraRules = '' - #SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0664", GROUP="users" - # SDP protocol - KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", MODE="0666" - ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", MODE="0666" - ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0666" - # Flashloader - KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", MODE="0666" - # Controller - KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="18d1", MODE="0666" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", MODE="0660", TAG+="uaccess" - ''; + hardware.google-stadia-controller.enable = true; networking = { hostName = "Rory-desktop"; @@ -179,12 +169,12 @@ args@{ unrar-wrapper #(schildichat-desktop.override { electron = electron; }) - (callPackage ../../modules/packages/nheko-git.nix { + (callPackage ../../packages/nheko-git.nix { inherit nhekoSrc; inherit mtxclientSrc; voipSupport = false; }) - #(callPackage ../../modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix { }) + #(callPackage ../../packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix { }) #vesktop virt-viewer @@ -221,7 +211,7 @@ args@{ extraPortals = with pkgs; [ #xdg-desktop-portal-gtk xdg-desktop-portal-xapp - # (callPackage ../../modules/packages/xdg-desktop-portal-gtk.nix { }) + # (callPackage ../../packages/xdg-desktop-portal-gtk.nix { }) ]; config = { common = { diff --git a/host/Rory-desktop/nginx.nix b/host/Rory-desktop/nginx.nix
index dfb1d03..98ef48b 100644 --- a/host/Rory-desktop/nginx.nix +++ b/host/Rory-desktop/nginx.nix
@@ -16,7 +16,7 @@ # recommendedGzipSettings = true; recommendedBrotliSettings = true; recommendedOptimisation = true; - #defaultMimeTypes = ../../../../modules/packages/nginx/mime.types; + #defaultMimeTypes = ../../../../packages/nginx/mime.types; appendConfig = '' worker_processes 16; ''; diff --git a/host/Rory-nginx/services/nginx/nginx.nix b/host/Rory-nginx/services/nginx/nginx.nix
index bd6e62d..2bc8d44 100755 --- a/host/Rory-nginx/services/nginx/nginx.nix +++ b/host/Rory-nginx/services/nginx/nginx.nix
@@ -22,7 +22,7 @@ in #recommendedGzipSettings = true; recommendedBrotliSettings = true; recommendedOptimisation = true; - defaultMimeTypes = ../../../../modules/packages/nginx/mime.types; + defaultMimeTypes = ../../../../packages/nginx/mime.types; appendConfig = '' worker_processes 16; ''; diff --git a/host/Rory-portable/configuration.nix b/host/Rory-portable/configuration.nix
index 759379f..936055a 100644 --- a/host/Rory-portable/configuration.nix +++ b/host/Rory-portable/configuration.nix
@@ -9,7 +9,7 @@ { imports = [ ../../modules/base-client.nix - ../../modules/packages/vim.nix + ../../packages/vim.nix ./optional/gui/wayland.nix ]; @@ -27,19 +27,6 @@ #readOnlyNixStore = false; }; - services.udev.extraRules = '' - #SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0664", GROUP="users" - # SDP protocol - KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", MODE="0666" - ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1fc9", MODE="0666" - ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0666" - # Flashloader - KERNEL=="hidraw*", ATTRS{idVendor}=="15a2", MODE="0666" - # Controller - KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="18d1", MODE="0666" - SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", MODE="0660", TAG+="uaccess" - ''; - #systemd.services.NetworkManager-wait-online.enable = false; networking = { @@ -52,7 +39,7 @@ # allowedUDPPorts = [ ... ]; }; - #interfaces.enp34s0.ipv4.addresses = [ { + #interfaces.enp34s0.ipv4.addresses = [ { # address = "192.168.0.3"; # prefixLength = 24; #} ]; @@ -123,7 +110,7 @@ # - Languages #dotnet-sdk_7 #dotnet-sdk_8 - #(callPackage ../../modules/packages/dotnet-pack.nix { inherit pkgs; }) + #(callPackage ../../packages/dotnet-pack.nix { inherit pkgs; }) #games #osu-lazer-bin @@ -141,12 +128,12 @@ unrar-wrapper #(schildichat-desktop.override { electron = electron; }) - (callPackage ../../modules/packages/nheko-git.nix { + (callPackage ../../packages/nheko-git.nix { inherit nhekoSrc; inherit mtxclientSrc; voipSupport = false; }) - #(callPackage ../../modules/packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix { }) + #(callPackage ../../packages/mc/server/modpack/curseforge/techopolis-2/5.4.nix { }) #vesktop virt-viewer @@ -169,7 +156,7 @@ extraPortals = with pkgs; [ #xdg-desktop-portal-gtk xdg-desktop-portal-xapp -# (callPackage ../../modules/packages/xdg-desktop-portal-gtk.nix { }) + # (callPackage ../../packages/xdg-desktop-portal-gtk.nix { }) ]; config = { common = { diff --git a/host/Rory-wsl/configuration.nix b/host/Rory-wsl/configuration.nix
index b155058..5d170ef 100644 --- a/host/Rory-wsl/configuration.nix +++ b/host/Rory-wsl/configuration.nix
@@ -54,7 +54,7 @@ # - Languages #dotnet-sdk_7 #dotnet-sdk_8 - # (callPackage ../../modules/packages/dotnet-pack.nix { inherit pkgs; }) + # (callPackage ../../packages/dotnet-pack.nix { inherit pkgs; }) # temurin-bin # obsidian @@ -64,7 +64,7 @@ unrar-wrapper #(schildichat-desktop.override { electron = electron; }) - (callPackage ../../modules/packages/nheko-git.nix { + (callPackage ../../packages/nheko-git.nix { inherit nhekoSrc; inherit mtxclientSrc; }) diff --git a/host/RoryNix/configuration.nix b/host/RoryNix/configuration.nix
index 5876d2f..4482849 100644 --- a/host/RoryNix/configuration.nix +++ b/host/RoryNix/configuration.nix
@@ -8,9 +8,9 @@ { imports = [ # ./hardware-configuration.nix - ../../modules/packages/vim.nix + ../../packages/vim.nix ../../modules/environments/home.nix - # ../../modules/packages/overlays/haskell/basement/IntWord64.nix + # ../../packages/overlays/haskell/basement/IntWord64.nix ]; boot = {