Hi, I am a new user to NixOS. I have been trying to replace a module with an updated version from unstable, but it seems to be keeping the version from the stable packages. The services in particular are asusd and supergfxctl which should be version 5.1.2 and 5.0.2 from unstable but are instead 5.1.1 and 4.7.1 from stable. I am able to directly install unstable packages using overlays, as you can see with emacs at the bottom of the configuration.nix. Anyone have any idea what I am doing incorrectly with the modules?
flake.nix
{
description = "Your new nix config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hardware.url = "github:nixos/nixos-hardware";
};
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
inherit (self) outputs;
in {
overlays = import ./overlays {inherit inputs;};
nixosConfigurations = {
hostname = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [
# > Our main nixos configuration file <
./nixos/configuration.nix
];
};
};
};
}
Relevant configuration.nix
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
disabledModules =
[
"services/hardware/asusd.nix"
"services/hardware/supergfxd.nix"
];
imports = [
inputs.hardware.nixosModules.asus-zephyrus-gu603h
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
"${inputs.nixpkgs-unstable}/nixos/modules/services/hardware/asusd.nix"
"${inputs.nixpkgs-unstable}/nixos/modules/services/hardware/supergfxd.nix"
];
nixpkgs = {
# You can add overlays here
overlays = [
outputs.overlays.unstable-packages
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
# Hardware
services.supergfxd.enable = true;
services.asusd.enable = true;
services.asusd.enableUserService = true;
environment.systemPackages = with pkgs; [
vim
git
wget
curl
killall
unstable.emacs
];
...