From c5246800890b766e972089b358fc13d8a5fb173b Mon Sep 17 00:00:00 2001 From: 4DBug Date: Tue, 2 Dec 2025 23:57:18 -0600 Subject: [PATCH] push --- core/audio.nix | 18 -- core/boot.nix | 13 -- core/core.nix | 16 -- core/graphics.nix | 20 -- core/locale.nix | 20 -- core/network.nix | 34 --- core/nix.nix | 14 -- core/security.nix | 7 - core/swap.nix | 15 -- core/user.nix | 9 - gnome.nix | 58 ----- main.nix | 455 +++++++++++++++++++++++++++++++++++++++- packages/flatpak.nix | 15 -- packages/packages.nix | 177 ---------------- packages/plasticity.nix | 138 ------------ packages/system.nix | 98 --------- packages/user.nix | 166 --------------- theming.nix | 21 -- 18 files changed, 450 insertions(+), 844 deletions(-) delete mode 100644 core/audio.nix delete mode 100644 core/core.nix delete mode 100644 core/graphics.nix delete mode 100644 core/locale.nix delete mode 100644 core/network.nix delete mode 100644 core/nix.nix delete mode 100644 core/swap.nix delete mode 100644 core/user.nix delete mode 100644 gnome.nix delete mode 100644 packages/flatpak.nix delete mode 100644 packages/packages.nix delete mode 100644 packages/plasticity.nix delete mode 100644 packages/system.nix delete mode 100644 packages/user.nix delete mode 100644 theming.nix diff --git a/core/audio.nix b/core/audio.nix deleted file mode 100644 index 3fbc94f..0000000 --- a/core/audio.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ ... }: - -{ - services = { - pulseaudio.enable = false; - - pipewire = { - enable = true; - - alsa.enable = true; - alsa.support32Bit = true; - - pulse.enable = true; - - jack.enable = true; - }; - }; -} diff --git a/core/boot.nix b/core/boot.nix index fb9c51d..19fd325 100644 --- a/core/boot.nix +++ b/core/boot.nix @@ -1,25 +1,12 @@ { ... }: { - systemd.services = { - #NetworkManager-wait-online.enable = false; - #systemd-udev-settle.enable = false; - }; - - #services.journald.extraConfig = "Storage=volatile"; - boot = { - #kernel.sysctl = { - # "vm.max_map_count" = 16777216; - # "fs.file-max" = 524288; - #}; - kernelParams = [ "fsck.mode=skip" "nvidia_drm.fbdev=1" "nvidia-drm.modeset=1" ]; initrd.checkJournalingFS = false; loader = { - #timeout = 0; grub.splashImage = null; systemd-boot.enable = true; efi.canTouchEfiVariables = true; diff --git a/core/core.nix b/core/core.nix deleted file mode 100644 index 6983e4b..0000000 --- a/core/core.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ ... }: - -{ - imports = [ - /etc/nixos/hardware-configuration.nix - ./nix.nix - ./user.nix - ./audio.nix - ./graphics.nix - ./locale.nix - ./network.nix - ./boot.nix - ./security.nix - # ./swap.nix - ]; -} diff --git a/core/graphics.nix b/core/graphics.nix deleted file mode 100644 index 60adacf..0000000 --- a/core/graphics.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ config, pkgs, ... }: - -{ - services.xserver.videoDrivers = ["nvidia"]; - - hardware = { - graphics = { - enable = true; - }; - - nvidia = { - modesetting.enable = true; - powerManagement.enable = false; - powerManagement.finegrained = false; - open = true; - nvidiaSettings = true; - package = config.boot.kernelPackages.nvidiaPackages.stable; - }; - }; -} diff --git a/core/locale.nix b/core/locale.nix deleted file mode 100644 index 146220b..0000000 --- a/core/locale.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ ... }: - -{ - time.timeZone = "America/Chicago"; - - i18n = { - defaultLocale = "en_US.UTF-8"; - extraLocaleSettings = { - LC_ADDRESS = "en_US.UTF-8"; - LC_IDENTIFICATION = "en_US.UTF-8"; - LC_MEASUREMENT = "en_US.UTF-8"; - LC_MONETARY = "en_US.UTF-8"; - LC_NAME = "en_US.UTF-8"; - LC_NUMERIC = "en_US.UTF-8"; - LC_PAPER = "en_US.UTF-8"; - LC_TELEPHONE = "en_US.UTF-8"; - LC_TIME = "en_US.UTF-8"; - }; - }; -} diff --git a/core/network.nix b/core/network.nix deleted file mode 100644 index 0093750..0000000 --- a/core/network.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ ... }: - -{ - services.openssh.enable = true; - - networking.firewall.enable = true; - - networking.nameservers = [ "8.8.8.8" "8.8.4.4" ]; - - services.dnscrypt-proxy2 = { - enable = true; - - settings = { - ipv6_servers = true; - require_dnssec = true; - - sources.public-resolvers = { - urls = [ - "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md" - "https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md" - ]; - - cache_file = "/var/cache/dnscrypt-proxy/public-resolvers.md"; - minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"; - }; - }; - }; - - networking = { - hostName = "nix"; - useNetworkd = true; - networkmanager.enable = false; - }; -} diff --git a/core/nix.nix b/core/nix.nix deleted file mode 100644 index 9c12eec..0000000 --- a/core/nix.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ ... }: - -{ - system = { - stateVersion = "25.05"; - - autoUpgrade = { - enable = true; - allowReboot = true; - }; - }; - - nix.settings.experimental-features = [ "nix-command" "flakes" ]; -} diff --git a/core/security.nix b/core/security.nix index 9399452..d8147ea 100644 --- a/core/security.nix +++ b/core/security.nix @@ -1,12 +1,5 @@ { ... }: { - security = { - rtkit.enable = true; - sudo = { - enable = true; - wheelNeedsPassword = false; - }; - }; } diff --git a/core/swap.nix b/core/swap.nix deleted file mode 100644 index 10a3e81..0000000 --- a/core/swap.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: - -{ - swapDevices = [ - { - device = "/var/lib/swapfile"; - size = 16 * 1024; - } - ]; - - zramSwap = { - enable = true; - memoryMax = 64 * 1024 * 1024 * 1024; - }; -} diff --git a/core/user.nix b/core/user.nix deleted file mode 100644 index 52920fa..0000000 --- a/core/user.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ ... }: - -{ - users.users.bug = { - isNormalUser = true; - description = "Bug"; - extraGroups = [ "networkmanager" "wheel" "audio" "video" "docker" ]; - }; -} diff --git a/gnome.nix b/gnome.nix deleted file mode 100644 index 932a474..0000000 --- a/gnome.nix +++ /dev/null @@ -1,58 +0,0 @@ -{ pkgs, ... }: - -{ - environment.systemPackages = with pkgs.gnomeExtensions; [ - #arcmenu - #rounded-window-corners-reborn - #just-perfection - #clipboard-history - #pano - ]; - - services = { - displayManager = { - cosmic-greeter.enable = true; - - autoLogin = { - enable = true; - user = "bug"; - }; - }; - - desktopManager.cosmic.enable = true; - - #desktopManager.plasma6.enable = true; - - displayManager.sddm.enable = true; - - displayManager.sddm.wayland.enable = true; - - #displayManager.gdm.enable = true; - #desktopManager.gnome.enable = true; - - xserver = { - enable = true; - - xkb = { - layout = "us"; - variant = ""; - }; - }; - }; - - systemd = { - services."getty@tty1".enable = false; - services."autovt@tty1".enable = false; - - targets = { - sleep.enable = false; - suspend.enable = false; - hibernate.enable = false; - hybrid-sleep.enable = false; - }; - }; -} - - - - diff --git a/main.nix b/main.nix index a6a5f9e..0d786cc 100644 --- a/main.nix +++ b/main.nix @@ -1,10 +1,455 @@ -{ ... }: +{ lib, config, pkgs, inputs, ... }: +let + nix-gaming = import (builtins.fetchTarball "https://github.com/fufexan/nix-gaming/archive/master.tar.gz"); +in { imports = [ - ./core/core.nix - ./packages/packages.nix - ./gnome.nix - ./theming.nix + /etc/nixos/hardware-configuration.nix + inputs.nix-gaming.nixosModules.platformOptimizations + inputs.nix-gaming.nixosModules.pipewireLowLatency ]; + + system = { + stateVersion = "25.11"; + + autoUpgrade = { + enable = true; + allowReboot = true; + }; + }; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + users.users.bug = { + isNormalUser = true; + description = "Bug"; + extraGroups = [ "networkmanager" "wheel" "audio" "video" "libvirtd" ]; + }; + + hardware = { + graphics = { + enable = true; + enable32Bit = true; + + extraPackages = with pkgs; [ + libva-vdpau-driver + libvdpau + libvdpau-va-gl + nvidia-vaapi-driver + vdpauinfo + libva + libva-utils + ]; + }; + + nvidia = { + modesetting.enable = true; + + powerManagement.enable = false; + powerManagement.finegrained = false; + + open = false; + + nvidiaSettings = true; + + package = config.boot.kernelPackages.nvidiaPackages.stable; + + nvidiaPersistenced = false; + }; + + enableRedistributableFirmware = true; + }; + + systemd.user.extraConfig = "DefaultTimeoutStopSec=10s"; + + boot = { + kernelPackages = pkgs.linuxPackages_zen; + + kernel.sysctl = { + "fs.file-max" = 524288; + }; + + initrd.checkJournalingFS = false; + + loader = { + grub.splashImage = null; + + systemd-boot.enable = true; + systemd-boot.configurationLimit = 10; + + efi.canTouchEfiVariables = true; + }; + }; + + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 8 * 1024; + }]; + + zramSwap = { + enable = true; + memoryMax = 16 * 1024 * 1024 * 1024; + }; + + time.timeZone = "America/Chicago"; + + i18n = { + defaultLocale = "en_US.UTF-8"; + extraLocaleSettings = { + LC_ADDRESS = "en_US.UTF-8"; + LC_IDENTIFICATION = "en_US.UTF-8"; + LC_MEASUREMENT = "en_US.UTF-8"; + LC_MONETARY = "en_US.UTF-8"; + LC_NAME = "en_US.UTF-8"; + LC_NUMERIC = "en_US.UTF-8"; + LC_PAPER = "en_US.UTF-8"; + LC_TELEPHONE = "en_US.UTF-8"; + LC_TIME = "en_US.UTF-8"; + }; + }; + + networking = { + hostName = "nix"; + + networkmanager.enable = true; + nameservers = ["1.1.1.1" "1.0.0.1"]; + + enableIPv6 = false; + }; + + security = { + rtkit.enable = true; + + sudo = { + enable = true; + wheelNeedsPassword = false; + }; + }; + + xdg.portal = { + enable = true; + xdgOpenUsePortal = true; + config = { + common.default = ["gtk"]; + }; + + extraPortals = [pkgs.xdg-desktop-portal-gtk]; + }; + + services = { + greetd.enable = true; + + system76-scheduler.enable = true; + + displayManager = { + cosmic-greeter.enable = true; + + autoLogin = { + enable = true; + user = "bug"; + }; + }; + + desktopManager.cosmic.enable = true; + + xserver = { + enable = true; + videoDrivers = ["nvidia"]; + excludePackages = [pkgs.xterm]; + + xkb = { + layout = "us"; + variant = ""; + }; + }; + + openssh.enable = true; + + pulseaudio.enable = false; + + pipewire = { + enable = true; + + alsa.enable = true; + alsa.support32Bit = true; + + pulse.enable = true; + + lowLatency.enable = false; + + jack.enable = true; + }; + + flatpak = { + enable = true; + + remotes = lib.mkOptionDefault [{ + name = "flathub-beta"; + location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo"; + }]; + + update.auto.enable = true; + uninstallUnmanaged = true; + + packages = [ + "org.vinegarhq.Sober" + "org.vinegarhq.Vinegar" + #"com.bambulab.BambuStudio" + "org.gnome.Decibels" + "org.pipewire.Helvum" + ]; + + overrides = { + global = { + Context.sockets = ["wayland" "!x11" "!fallback-x11"]; + }; + }; + }; + }; + + fonts = { + fontDir.enable = true; + enableDefaultPackages = true; + + packages = with pkgs; [ + twitter-color-emoji + ]; + + fontconfig = { + enable = true; + useEmbeddedBitmaps = true; + + defaultFonts = { + emoji = [ "Twitter Color Emoji" ]; + }; + }; + }; + + users.users.bug.packages = with pkgs; [ + vscode + + (luajit.withPackages (ps: with ps; [ + luasocket + bit32 + ])) + + go + + (python3.withPackages (ps: with ps; [ + unidecode + discordpy + setuptools + + pip + pynput + python-uinput + + mido + + + + pyautogui + pygobject3 + pycairo + + tkinter + pyautogui + + numpy + scipy + imageio + + evdev + ])) + + nodejs + + (blender.withPackages (ps: with ps; [ + libGLU + gcc + zlib + xorg.libX11 + fontconfig + pcre2 + xorg.libXext + gcc + xorg.libxcb + glib + ])) + + plasticity + obsidian + vesktop + nicotine-plus + ptyxis + fastfetch + tree + gh + scanmem + samrewritten + impression + #bambu-studio + #orca-slicer + resources + + authenticator + + steamtinkerlaunch + + obs-studio + + prismlauncher + gimp + ]; + + environment = { + variables = { + GBM_BACKEND = "nvidia-drm"; + LIBVA_DRIVER_NAME = "nvidia"; + __GLX_VENDOR_LIBRARY_NAME = "nvidia"; + }; + + sessionVariables = { + COSMIC_DATA_CONTROL_ENABLED = 1; + WEBKIT_DISABLE_COMPOSITING_MODE = "1"; + }; + + systemPackages = with pkgs; [ + home-manager + comma + nix-index + + git + wget + + gcc + gnumake + + nmap + inetutils + + nix-output-monitor + nvd + + nixd + nil + + gnome-boxes + + jdk + openjdk + zlib + glfw + glew + + wine64 + wineWow64Packages.full + + lug-helper + + #inputs.nix-citizen.packages.${system}.star-citizen-git + #inputs.nix-citizen.packages.${system}.star-citizen + #inputs.nix-citizen.packages.${system}.wine-astral + + (nix-gaming.packages.${pkgs.hostPlatform.system}.star-citizen.override { + tricks = [ "arial" "vcrun2019" "win10" "sound=alsa" ]; + }) + + appimage-run + + vulkan-tools + vulkan-validation-layers + vulkan-loader + + protonplus + + pulseaudioFull + + gamemode + + winetricks + ]; + }; + + nixpkgs = { + config = { + allowUnfree = true; + cudaSupport = true; + + nvidia.acceptLicense = true; + }; + }; + + virtualisation = { + libvirtd.enable = true; + spiceUSBRedirection.enable = true; + }; + + programs = { + appimage = { + enable = true; + binfmt = true; + }; + + bash.shellAliases = { + fetch = "fastfetch --file ~/Pictures/Ansi/nix.ans"; + neofetch = "fetch"; + + rebuild = "sudo nixos-rebuild switch --impure"; # home-manager switch --impure + + #pissh = "ssh -t $(avahi-resolve-host-name -4 pi.home | awk '{print $2}')"; + #pi = "pissh \"cd $(pwd) && bash\""; + pi = "ssh pi.bug.tools"; + + pico = "ssh pico.sh"; + + # tuns name port + tuns = "bash -c '\''if [ \"$#\" -ne 2 ]; then echo \"Usage: tun name port\"; exit 1; fi; +if [[ \"$1\" =~ ^[0-9]+$ ]]; then port=\"$1\"; name=\"$2\"; +elif [[ \"$2\" =~ ^[0-9]+$ ]]; then port=\"$2\"; name=\"$1\"; +else echo \"Error: One argument must be a number (port)\"; exit 1; fi; +ssh -R \"$\{name}:80:localhost:$\{port}\" tuns.sh'\'' _"; + + # pgs name directory + pgs = "bash -c '\''if [ \"$#\" -ne 2 ]; then echo \"Usage: pgs NAME DIRECTORY\"; exit 1; fi; rsync -rv \"$2\" pgs.sh:/\"$1\"'\'' _"; + + bambu = "env -u WAYLAND_DISPLAY XDG_SESSION_TYPE=x11 WEBKIT_FORCE_COMPOSITING_MODE=1 WEBKIT_DISABLE_COMPOSITING_MODE=1 GBM_BACKEND=dri bambu-studio"; + }; + + firefox.enable = true; + + steam = { + enable = true; + + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = false; + + localNetworkGameTransfers.openFirewall = true; + + gamescopeSession.enable = true; + + extraCompatPackages = with pkgs; [ + proton-ge-bin + ]; + + platformOptimizations.enable = true; + }; + + gamescope = { + enable = true; + capSysNice = true; + args = [ + "--rt" + "--expose-wayland" + ]; + }; + + nix-ld = { + enable = true; + libraries = with pkgs; [ + + ]; + }; + }; } diff --git a/packages/flatpak.nix b/packages/flatpak.nix deleted file mode 100644 index 2b5dd33..0000000 --- a/packages/flatpak.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ ... }: - -{ - services.flatpak.packages = [ - { appId = "com.github.tchx84.Flatseal"; origin = "flathub"; } - "org.vinegarhq.Sober" - "org.vinegarhq.Vinegar" - { flatpakref = "https://dl.flathub.org/repo/appstream/org.gimp.GIMP.flatpakref"; sha256 = "1xw8vwpgmyjf5xhh101gqffpwa8x41pysfdl3glx2xv7ydhpc3bj"; } - #"com.bambulab.BambuStudio" - "org.gnome.Decibels" - "org.pipewire.Helvum" - #"io.github.giantpinkrobots.flatsweep" - "net.codelogistics.clicker" - ]; -} diff --git a/packages/packages.nix b/packages/packages.nix deleted file mode 100644 index db1fca0..0000000 --- a/packages/packages.nix +++ /dev/null @@ -1,177 +0,0 @@ -{ lib, pkgs, config, ... }: - -{ - imports = [ - ./user.nix - ./system.nix - ./flatpak.nix - ]; - - nixpkgs = { - config = { - allowUnfree = true; - #cudaSupport = true; - }; - - overlays = [ - (self: super: { - plasticity-beta = self.callPackage ./plasticity.nix { }; - }) - ]; - }; - - services.flatpak = { - enable = true; - - remotes = lib.mkOptionDefault [{ - name = "flathub-beta"; - location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo"; - }]; - - update.auto.enable = true; - uninstallUnmanaged = true; - }; - - environment.sessionVariables = { - WEBKIT_DISABLE_COMPOSITING_MODE = "1"; - }; - - programs.virt-manager.enable = true; - - users.groups.libvirtd.members = ["bug"]; - - virtualisation.libvirtd.enable = true; - - virtualisation.spiceUSBRedirection.enable = true; - - virtualisation.docker.enable = true; - - programs.appimage.enable = true; - programs.appimage.binfmt = true; - - programs = { - bash.shellAliases = { - fetch = "fastfetch --file ~/Pictures/Ansi/nix.ans"; - neofetch = "fetch"; - - rebuild = "sudo nixos-rebuild switch --impure"; # home-manager switch --impure - - #pissh = "ssh -t $(avahi-resolve-host-name -4 pi.home | awk '{print $2}')"; - #pi = "pissh \"cd $(pwd) && bash\""; - pi = "ssh pi.bug.tools"; - - pico = "ssh pico.sh"; - - # tuns name port - tuns = "bash -c '\''if [ \"$#\" -ne 2 ]; then echo \"Usage: tun name port\"; exit 1; fi; -if [[ \"$1\" =~ ^[0-9]+$ ]]; then port=\"$1\"; name=\"$2\"; -elif [[ \"$2\" =~ ^[0-9]+$ ]]; then port=\"$2\"; name=\"$1\"; -else echo \"Error: One argument must be a number (port)\"; exit 1; fi; -ssh -R \"$\{name}:80:localhost:$\{port}\" tuns.sh'\'' _"; - - # pgs name directory - pgs = "bash -c '\''if [ \"$#\" -ne 2 ]; then echo \"Usage: pgs NAME DIRECTORY\"; exit 1; fi; rsync -rv \"$2\" pgs.sh:/\"$1\"'\'' _"; - - bambu = "env -u WAYLAND_DISPLAY XDG_SESSION_TYPE=x11 WEBKIT_FORCE_COMPOSITING_MODE=1 WEBKIT_DISABLE_COMPOSITING_MODE=1 GBM_BACKEND=dri bambu-studio"; - }; - - dconf.enable = lib.mkDefault true; - - firefox.enable = true; - - steam = { - enable = true; - remotePlay.openFirewall = true; - dedicatedServer.openFirewall = true; - localNetworkGameTransfers.openFirewall = true; - }; - - nix-ld = { - enable = true; - libraries = with pkgs; [ - gtk3 - xorg.libX11 - #glib - #libgbinder - #pcre2 - #gtk4 - #libadwaita - #lxc - #dnsmasq - #alsa-lib - #libGL - - #libGLU - mesa - #gcc - zlib - #xorg.libX11 - #fontconfig - #pcre2 - #xorg.libXext - #gcc - #xorg.libxcb - #pkgs.qt5.full pkgs.freetype pkgs.fontconfig - #pkgs.xorg.libX11 pkgs.xorg.libxcb pkgs.xorg.libXext - #pkgs.xorg.libXrender - - - cmake - clang - zulu - jdk - openjdk - mesa - libGL - libGLU - zlib - glfw - gtkmm4 - pangomm_2_48 - #glibmm_2_68 - cairomm_1_16 - libsigcxx30 - gtk4 - pango - gdk-pixbuf - cairo - harfbuzz - graphene - glib - vulkan-loader - glew - freeglut - gcc - - brotli - libpng - - libunwind - - jdk17_headless - libunwind - gcc - mesa - glew - glfw - zlib - ]; - }; - }; - - services = { - printing.enable = true; - - ollama = { - enable = true; - acceleration = "cuda"; - }; - - syncthing = { - enable = true; - user = "bug"; - group = "wheel"; - dataDir = "/home/bug/"; - }; - }; -} diff --git a/packages/plasticity.nix b/packages/plasticity.nix deleted file mode 100644 index b9ed9a9..0000000 --- a/packages/plasticity.nix +++ /dev/null @@ -1,138 +0,0 @@ -{ - alsa-lib, - at-spi2-atk, - autoPatchelfHook, - cairo, - cups, - dbus, - desktop-file-utils, - expat, - fetchurl, - gdk-pixbuf, - gtk3, - gvfs, - hicolor-icon-theme, - lib, - libdrm, - libglvnd, - libnotify, - libsForQt5, - libxkbcommon, - mesa, - nspr, - nss, - openssl, - pango, - rpmextract, - stdenv, - systemd, - trash-cli, - vulkan-loader, - wrapGAppsHook3, - xdg-utils, - xorg, -}: -stdenv.mkDerivation rec { - pname = "plasticity"; - version = "25.3.0.beta.3"; - - src = fetchurl { - #url = "https://github.com/nkallen/plasticity/releases/download/v${version}/Plasticity-${version}-1.x86_64.rpm"; - #hash = "sha256:166f8hvgdgr5lpkff28ms5qb425b2w7ckskchsabr1nwq49f7y74"; - url = "https://github.com/4DBug/plasticity/releases/download/${version}/plasticity-beta-${version}-1.x86_64.rpm"; - hash = "sha256:03a3q07knqi3bdipxkp2igqpd3ngbrdj1bw9cdbzkhihdllgmba4"; - }; - - passthru.updateScript = ./update.sh; - - nativeBuildInputs = [ - wrapGAppsHook3 - autoPatchelfHook - rpmextract - mesa - ]; - - buildInputs = [ - alsa-lib - at-spi2-atk - cairo - cups - dbus - desktop-file-utils - expat - gdk-pixbuf - gtk3 - gvfs - hicolor-icon-theme - libdrm - libnotify - libsForQt5.kde-cli-tools - libxkbcommon - nspr - nss - openssl - pango - (lib.getLib stdenv.cc.cc) - trash-cli - xdg-utils - ]; - - runtimeDependencies = [ - systemd - libglvnd - vulkan-loader - xorg.libX11 - xorg.libxcb - xorg.libXcomposite - xorg.libXdamage - xorg.libXext - xorg.libXfixes - xorg.libXrandr - xorg.libXtst - ]; - - dontUnpack = true; - - autoPatchelfIgnoreMissingDeps = [ - "ACCAMERA.tx" - "AcMPolygonObj15.tx" - "ATEXT.tx" - "ISM.tx" - "RText.tx" - "SCENEOE.tx" - "TD_DbEntities.tx" - "TD_DbIO.tx" - "WipeOut.tx" - ]; - - installPhase = '' - runHook preInstall - - mkdir $out - cd $out - rpmextract $src - mv $out/usr/* $out - rm -r $out/usr - - runHook postInstall - ''; - - postInstall = '' - # Remove dangling symlinks created by the rpm - find $out -xtype l -delete - ''; - - preFixup = '' - gappsWrapperArgs+=(--add-flags "--use-gl=egl") - ''; - - meta = with lib; { - description = "CAD for artists"; - homepage = "https://www.plasticity.xyz"; - license = licenses.unfree; - mainProgram = "Plasticity"; - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - maintainers = with maintainers; [ imadnyc ]; - platforms = [ "x86_64-linux" ]; - }; -} diff --git a/packages/system.nix b/packages/system.nix deleted file mode 100644 index 55091fc..0000000 --- a/packages/system.nix +++ /dev/null @@ -1,98 +0,0 @@ -{ pkgs, inputs, ... }: - -{ - environment.systemPackages = with pkgs; [ - home-manager - comma - nix-index - - git - wget - - # compiling - gcc - gnumake - - # network - nmap - inetutils - sshs - - # input testing - evtest - - # nix language server - nixd - nil - - #gtk3 - #gobject-introspection - - #libadwaita - - #appimage-run - - #nimble - #clang - #gnumake - #nim - #pkg-config - #mimalloc - - gnome-boxes - - #glib - #libgbinder - #pcre2 - #gtk4 - #libadwaita - #lxc - #dnsmasq - - #cmake - #clang - #zulu - jdk - openjdk - #mesa - #libGLU - zlib - glfw - #gtkmm4 - #pangomm_2_48 - #glibmm_2_68 - #cairomm - #libsigcxx - #gtk4 - #pango - #gdk-pixbuf - #cairo - #harfbuzz - #graphene - #glib - #vulkan-loader - glew - #freeglut - #gcc - - #gparted - #polkit - - #dxvk - #vkd3d - #wine - wine64 - wineWow64Packages.full - - #lug-helper - - #inputs.nix-citizen.packages.${system}.star-citizen-git - #nix-citizen.packages.${system}.star-citizen - #nix-citizen.packages.${system}.wine-astral - - docker - freerdp - appimage-run - gamemode - ]; -} diff --git a/packages/user.nix b/packages/user.nix deleted file mode 100644 index be647a5..0000000 --- a/packages/user.nix +++ /dev/null @@ -1,166 +0,0 @@ -{ config, pkgs, ... }: - -let - unstable = import { config = config.nixpkgs.config or {}; }; -in -{ - users.users.bug.packages = with pkgs; [ - # ide - vscode - #zed-editor - - # languages - luau - - (luajit.withPackages (ps: with ps; [ - luasocket - bit32 - luautf8 - jsregexp - lgi - gtk3 - gobject-introspection - ])) - - go - - (python3.withPackages (ps: with ps; [ - unidecode - discordpy - setuptools - - pip - pynput - python-uinput - - mido - # ninja - # pybind11 - - # diffusers - # einops - # opencv-python - # numpy - #torch-bin - #torchWithCuda - # transformers - # torchvision - #taming-transformers-rom1504 - #ConfigArgParse - #ipdb - # omegaconf - - #sentencepiece - # tqdm - - # Mesh Processing - # trimesh - # pymeshlab - # pygltflib - - #kornia - #facexlib - - # Training - # accelerate - #pytorch_lightning - #scikit-learn - #scikit-image - - # Demo only - # gradio - # fastapi - # uvicorn - # onnxruntime - #gevent - #geventhttpclient - # pymatting - # pooch - # jsonschema - # scikit-image - - pyautogui - pygobject3 - pycairo - - tkinter - pyautogui - - numpy - scipy - imageio - - evdev - ])) - - nodejs - - # 3D - (unstable.blender.withPackages (ps: with ps; [ - libGLU - gcc - zlib - xorg.libX11 - fontconfig - pcre2 - xorg.libXext - gcc - xorg.libxcb - glib - ])) - - plasticity - plasticity-beta - - # video - # kdenlive - - # markdown / notes - obsidian - - # social - vesktop - - # music - nicotine-plus - #furnace - pulseaudio - - # utilties - #mapscii - cloudflared - #base16-schemes - ptyxis - #rpi-imager - fastfetch - tree - #gnome-tweaks - xclicker - gh - scanmem - #openrgb - samrewritten - #testdisk - impression - #bambu-studio - orca-slicer - #sushi - #lutris - resources - #discord - dissent - - authenticator - #eyedropper - #turtle - #xonotic - buffer - - steamtinkerlaunch - protonup-qt - - obs-studio - - prismlauncher - ]; -} diff --git a/theming.nix b/theming.nix deleted file mode 100644 index fd56544..0000000 --- a/theming.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ pkgs, ... }: - -{ - fonts = { - fontDir.enable = true; - enableDefaultPackages = true; - - packages = with pkgs; [ - twitter-color-emoji - ]; - - fontconfig = { - enable = true; - useEmbeddedBitmaps = true; - - defaultFonts = { - emoji = [ "Twitter Color Emoji" ]; - }; - }; - }; -}