This is an automated archive made by the Lemmit Bot.
The original was posted on /r/nixos by /u/ASCEND1NGVO1D on 2025-10-18 03:01:36+00:00.
Just wanted to post some of “my” configs that have helped me solve random issues.
To use specific nvidia driver, or one newer than in stable nix, in your configuration.nix:
hardware.nvidia = {
other settings not included as they are default
===============================================
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "580.95.05";
# When updating you will get a hash error
# Just take the hash from the error and replace below
sha256\_64bit = "sha256-hJ7w746EK5gGss3p8RwTA9VPGpp2lGfk5dlhsv4Rgqc=";
sha256\_aarch64 = "sha256-Puz4MtouFeDgmsNMKdLHoDgDGC+QRXh6NVysvltWlbc=";
openSha256 = "sha256-ZpuVZybW6CFN/gz9rx+UJvQ715FZnAOYfHn5jt5Z2C8=";
settingsSha256 = "sha256-ZpuVZybW6CFN/gz9rx+UJvQ715FZnAOYfHn5jt5Z2C8=";
persistencedSha256 = lib.fakeSha256;
};
};
`Have multiple systems and want one to run stable with unstable overlay and vise versa, in flake.nix:`
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }: {
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem { system = “x86_64-linux”; modules = [ ({ pkgs, … }: { nixpkgs = { overlays = [ (self: super: { unstable = import nixpkgs-unstable { system = “x86_64-linux”; config.allowUnfree = true; }; }) ];}; }) ./machines/desktop/configuration.nix ]; };
nixosConfigurations.laptop = nixpkgs-unstable.lib.nixosSystem { system = “x86_64-linux”; modules = [ ({ pkgs, … }: { nixpkgs = { overlays = [(self: super: { stable = import nixpkgs { system = “x86_64-linux”; }; }) ]; }; }) ./machines/laptop/configuration.nix ]; };
}
}
`As a continuation of previous snippet, in configuration.nix, if you are on the stable desktop and want an unstable package:`
environment.systemPackages = with pkgs; [
unstable.YourFavoritePackage
];
`or on the unstable laptop and want a stable package:`
environment.systemPackages = with pkgs; [
stable.YourFavoritePackage
];
Auto start steam in background on login, configuration.nix
systemd.user.services.steam = { enable = true; description = "Open Steam in the background at boot"; wantedBy = [ "graphical-session.target" ]; after = [ "network.target" ]; serviceConfig = { ExecStartPre = "${pkgs.coreutils}/bin/sleep 3"; ExecStart = "${pkgs.steam}/bin/steam -nochatui -nofriendsui -silent %U"; Restart = "on-failure"; RestartSec = "5s"; }; };
On hyprland with nixos, this seemed to be sufficient for global dark mode with all apps (even nautilus) when adding this to home.nix:
dconf = {
enable = true;
settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
gtk = {
enable = true;
theme.name = "Adwaita-dark";
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = 1; # force dark in all GTK3 apps
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = 1; # force dark in all GTK4 apps
};
};
I am open to questions. Ideally I just hope this helps at least one other person. I also say “My” because let’s be real here… Also I have no idea if this post will be properly formatted for viewing pleasure as I have not posted code before soooo

