From 65a56c663b497a9718c439e0573be16dbfce0a05 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 11 Oct 2026 19:17:40 +0200 Subject: daco --- flake.lock | 102 +++++++++++++++++++++++++++++++++++++++- flake.nix | 2 + nixos/configuration.nix | 92 ++++++++++++++++++++++++++++++++++-- nixos/spicetify-theme/color.ini | 19 ++++++++ nixos/spicetify-theme/user.css | 1 + 5 files changed, 210 insertions(+), 6 deletions(-) create mode 100644 nixos/spicetify-theme/color.ini create mode 100644 nixos/spicetify-theme/user.css diff --git a/flake.lock b/flake.lock index 3b53750..5f5103a 100644 --- a/flake.lock +++ b/flake.lock @@ -450,6 +450,35 @@ "type": "github" } }, + "nixpkgs_3": { + "locked": { + "lastModified": 1791594108, + "narHash": "sha256-XK4KceonkwD8LuMAt/vNrz982mXJM5jeHAxMwsUXXAQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "6510408d147d8c5e6d76043e899e9251756f6a75", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { + "locked": { + "lastModified": 1791594108, + "narHash": "sha256-V0WmebqwEeAVZMqxfv7Dq7hpKkPPM19W50xQf3D1Kf4=", + "rev": "6510408d147d8c5e6d76043e899e9251756f6a75", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1089111.6510408d147d/nixexprs.tar.xz" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" + } + }, "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat", @@ -476,7 +505,63 @@ "inputs": { "home-manager": "home-manager", "hyprland": "hyprland", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_2", + "serpantinum": "serpantinum", + "spicetify-nix": "spicetify-nix" + } + }, + "serpantinum": { + "inputs": { + "nixpkgs": "nixpkgs_3", + "serpantinum-wallpapers": "serpantinum-wallpapers" + }, + "locked": { + "lastModified": 1791666807, + "narHash": "sha256-NwqBh34sc0cYjBDoLj/QYH5pnmQcUjXka+uSqfBN/FQ=", + "owner": "ilyamiro", + "repo": "serpantinum", + "rev": "86ed6452f77a7a6c7491a24459235405b50e5deb", + "type": "github" + }, + "original": { + "owner": "ilyamiro", + "repo": "serpantinum", + "type": "github" + } + }, + "serpantinum-wallpapers": { + "flake": false, + "locked": { + "lastModified": 1789127588, + "narHash": "sha256-L3xRtDXH1ERwVIP+ztT6qn7YYh3aHpfpy1/nvyjvKIc=", + "owner": "ilyamiro", + "repo": "shell-wallpapers", + "rev": "4f5994aff60403f88d3f0378e6f9c9d0a00b0289", + "type": "github" + }, + "original": { + "owner": "ilyamiro", + "repo": "shell-wallpapers", + "type": "github" + } + }, + "spicetify-nix": { + "inputs": { + "nixpkgs": "nixpkgs_4", + "systems": "systems_2" + }, + "locked": { + "lastModified": 1791715302, + "narHash": "sha256-AkjudSXIY6NAhJTc4it13lso/Ik7NCNwVJ3tJbKHtTo=", + "owner": "Gerg-L", + "repo": "spicetify-nix", + "rev": "50246f67d72e042291e426823dd61567b796fea9", + "type": "github" + }, + "original": { + "owner": "Gerg-L", + "repo": "spicetify-nix", + "type": "github" } }, "systems": { @@ -494,6 +579,21 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1791244623, + "narHash": "sha256-uuanbkFk8a313Zfrxdcz8Us/yQtaxNnKJtX8v0ZPpd8=", + "owner": "nix-systems", + "repo": "default", + "rev": "d36eeed142f88b5a636f2e3856a53c61654cf29b", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "xdph": { "inputs": { "aquamarine": [ diff --git a/flake.nix b/flake.nix index 53781f3..e8ad1c5 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,8 @@ home-manager.inputs.nixpkgs.follows = "nixpkgs"; hyprland.url = "github:hyprwm/Hyprland"; + serpantinum.url = "github:ilyamiro/serpantinum"; + spicetify-nix.url = "github:Gerg-L/spicetify-nix"; }; outputs = { diff --git a/nixos/configuration.nix b/nixos/configuration.nix index a2c523f..a5ad278 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -18,6 +18,8 @@ # Import your generated (nixos-generate-config) hardware configuration ./hardware-configuration.nix + inputs.serpantinum.nixosModules.default + inputs.spicetify-nix.nixosModules.default ]; nixpkgs = { @@ -37,7 +39,7 @@ config = { # Disable if you don't want unfree packages allowUnfree = true; - permittedInsecurePackages = ["librewolf-152.0.2-1"]; + permittedInsecurePackages = ["librewolf-152.0.2-1" "librewolf-unwrapped-152.0.2-1"]; }; }; @@ -59,6 +61,8 @@ programs.hyprland = { enable = true; + package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; + portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; xwayland.enable = true; }; services.xserver.enable = true; @@ -93,6 +97,20 @@ variant = ""; }; + hardware.graphics = { + enable = true; + enable32Bit = true; # Critical for Steam/Proton performance + }; + services.xserver.videoDrivers = [ "nvidia" ]; + + hardware.nvidia = { + modesetting.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; + open = false; # Set to true if you prefer NVIDIA open kernel modules + nvidiaSettings = true; + }; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users."phos" = { isNormalUser = true; @@ -107,16 +125,80 @@ pulse.enable = true; }; + services.tailscale = { + # Enable tailscale at startup + enable = true; + useRoutingFeatures = "client"; + # If you would like to use a preauthorized key, set + # authKeyFile = "/run/secrets/tailscale_key"; + # Note: maximum expire time is 90 days + }; +fonts.packages = with pkgs; [ + nerd-fonts.jetbrains-mono + # If you are on an older NixOS version (24.05 or prior), use this syntax instead: + # (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) +]; environment.systemPackages = with pkgs; [ vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget - kitty + foot + starship + fastfetch git - vim - rofi + vim waybar - librewolf + #librewolf + firefox-bin + cliphist + easyeffects + nautilus + vscodium + pulseaudio + inotify-tools + matugen + vesktop + bibata-cursors + inputs.serpantinum.packages.${pkgs.stdenv.hostPlatform.system}.default + (prismlauncher.override { + # Include required JDKs for various Minecraft versions + jdks = [ + zulu8 # < 1.17 + zulu17 # 1.18 – 1.20.4 + zulu21 # >= 1.20.5 + ]; + # Optional tools needed by specific mods + additionalPrograms = [ ffmpeg ]; + }) ]; + + programs.ssh = { + startAgent = true; + }; + + programs.steam = { + enable = true; + }; + +programs.spicetify = let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; +in { + enable = true; + theme = { + name = "Matugen"; + src = ./spicetify-theme; + injectCss = true; + replaceColors = true; + overwriteAssets = false; + }; + colorScheme = "Matugen"; + enabledExtensions = with spicePkgs.extensions; [ + adblock + shuffle + ]; +}; + + programs.dconf.enable = true; + programs.serpantinum.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "25.11"; } diff --git a/nixos/spicetify-theme/color.ini b/nixos/spicetify-theme/color.ini new file mode 100644 index 0000000..982842c --- /dev/null +++ b/nixos/spicetify-theme/color.ini @@ -0,0 +1,19 @@ +cat << 'EOF' > nixos/spicetify-theme/color.ini +[Matugen] +text = FFFFFF +subtext = FFFFFF +nav-active-text = FFFFFF +main = 000000 +sidebar = 000000 +player = 000000 +card = 000000 +shadow = 000000 +selected-row = 000000 +button = FFFFFF +button-active = FFFFFF +button-disabled = 000000 +tab-active = FFFFFF +notification = 000000 +notification-error = FF0000 +misc = 000000 +EOF diff --git a/nixos/spicetify-theme/user.css b/nixos/spicetify-theme/user.css new file mode 100644 index 0000000..38a6494 --- /dev/null +++ b/nixos/spicetify-theme/user.css @@ -0,0 +1 @@ +@import url("/home/phos/.config/matugen/colors-spicetify.css"); -- cgit v1.2.3