diff --git a/flake.lock b/flake.lock index a61b038..ae197b3 100644 --- a/flake.lock +++ b/flake.lock @@ -396,22 +396,6 @@ "type": "github" } }, - "nixpkgs-stable": { - "locked": { - "lastModified": 1728909085, - "narHash": "sha256-WLxED18lodtQiayIPDE5zwAfkPJSjHJ35UhZ8h3cJUg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "c0b1da36f7c34a7146501f684e9ebdf15d2bebf8", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-24.05", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs_2": { "locked": { "lastModified": 1725194671, @@ -484,7 +468,6 @@ "home-manager": "home-manager", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", - "nixpkgs-stable": "nixpkgs-stable", "nixvim": "nixvim", "stylix": "stylix", "zen": "zen" diff --git a/flake.nix b/flake.nix index 5b6126e..aff96e3 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,6 @@ inputs = { # NixOS official package source, using the nixos-23.11 branch here - nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixos-hardware.url = "github:nixos/nixos-hardware"; @@ -40,11 +39,9 @@ }; - outputs = { nixpkgs, nixpkgs-stable, ... }@attrs: + outputs = { nixpkgs, ... }@attrs: let lib = nixpkgs.lib; - pkgs = import nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; }; - pkgs-stable = import nixpkgs-stable { system = "x86_64-linux"; config = { allowUnfree = true; }; }; in { nixosConfigurations = { @@ -57,9 +54,7 @@ specialArgs = { hostname = "Lenni"; type = "desktop"; - inherit pkgs; - inherit pkgs-stable; - inherit attrs; + inherit attrs; inherit system; }; @@ -87,9 +82,7 @@ specialArgs = { hostname = "Puenktchen"; type = "desktop"; - inherit pkgs; - inherit pkgs-stable; - inherit attrs; + inherit attrs; inherit system; }; @@ -120,9 +113,7 @@ specialArgs = { hostname = "Anton"; type = "server"; - inherit pkgs; - inherit pkgs-stable; - inherit attrs; + inherit attrs; inherit system; }; diff --git a/hosts/common/default.nix b/hosts/common/default.nix index ac51384..9670844 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -14,5 +14,6 @@ }; console.keyMap = "de"; nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nixpkgs.config.allowUnfree = true; system.stateVersion = "23.11"; }