diff --git a/desktops/gnome.nix b/desktops/gnome.nix index 1a68ee72..248b1171 100644 --- a/desktops/gnome.nix +++ b/desktops/gnome.nix @@ -1,4 +1,5 @@ { config, unstable, ... }: { + # Use "unstable" instead of "pkgs" to get the latest packages, defined in "flake.nix" services.xserver = { # https://nixos.org/manual/nixos/stable/index.html#chap-gnome # Enable the GNOME Desktop Environment. @@ -46,7 +47,6 @@ # Gnome relevant packages gnome3.gnome-tweaks papirus-icon-theme - glibc ]; imports = [ diff --git a/flake.nix b/flake.nix index e328d85d..be16da6f 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,7 @@ inputs = { # NixOS packages stable-nixpkgs.url = "nixpkgs/nixos-23.05"; + next-nixpkgs.url = "nixpkgs/nixos-23.11"; unstable-nixpkgs.url = "nixpkgs/nixos-unstable"; # Manage dotfiles in a home directory @@ -28,7 +29,7 @@ }; - outputs = { stable-nixpkgs, unstable-nixpkgs, home-manager, lanzaboote, moz_overlay, nur, sops-nix, ... }@inputs: + outputs = { stable-nixpkgs, next-nixpkgs, unstable-nixpkgs, home-manager, lanzaboote, moz_overlay, nur, sops-nix, ... }@inputs: let # Variables - Remember to set these hostname = "nixos-laptop"; @@ -44,6 +45,11 @@ config = { allowUnfree = true; }; }; + next = import next-nixpkgs { + inherit system; + config = { allowUnfree = true; }; + }; + lib = stable-nixpkgs.lib; unstable-lib = unstable-nixpkgs.lib; in { @@ -51,10 +57,7 @@ nixosConfigurations = { # Declare a generic configuration using the $hostname variable: ${hostname} = lib.nixosSystem { - inherit system; - # Tell NixOS to inherit the "Unstable" packages defined above. - # Used in the { } imports on each configuration file. See gnome.nix - specialArgs = { inherit unstable; }; + inherit next unstable system; modules = [ # Configuration Imports ./hosts/${hostname}/hardware-configuration.nix # Hardware Configuration