From a2959bda31ff876d63b5e9317a316d34749a7f89 Mon Sep 17 00:00:00 2001 From: voidarc Date: Sat, 5 Sep 2026 19:18:29 +0100 Subject: [PATCH] added unstablePkgs module option --- flake.lock | 17 +++++++++++++++++ flake.nix | 1 + modules/features/distcc/default.nix | 20 ++++++++++++++++++++ modules/system/core/nix-settings.nix | 3 +++ 4 files changed, 41 insertions(+) create mode 100644 modules/features/distcc/default.nix diff --git a/flake.lock b/flake.lock index c941acf..c957333 100644 --- a/flake.lock +++ b/flake.lock @@ -766,6 +766,22 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1788531059, + "narHash": "sha256-hLD4l3QOGBQhkVp3mQ2lJ/YbEi99qUgKapb40KovZ88=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "801bef6abd86b91e51083066b83fb354a11fc640", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_10": { "locked": { "lastModified": 1786719841, @@ -1061,6 +1077,7 @@ "hyprland": "hyprland", "import-tree": "import-tree", "nixpkgs": "nixpkgs_6", + "nixpkgs-unstable": "nixpkgs-unstable", "nvim": "nvim", "omnisearch": "omnisearch", "otter-launcher": "otter-launcher_2", diff --git a/flake.nix b/flake.nix index 2c674fe..ffe7b61 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { # System nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Apps nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim"; diff --git a/modules/features/distcc/default.nix b/modules/features/distcc/default.nix new file mode 100644 index 0000000..0f2459c --- /dev/null +++ b/modules/features/distcc/default.nix @@ -0,0 +1,20 @@ +{ + self, + moduleWithSystem, + ... +}: { + flake.nixosModules.name = moduleWithSystem ({ + pkgs, + self', + inputs', + ... + }: let + modules = with self.nixosModules; []; + in { + imports = modules; + programs.name = { + enable = true; + package = self'.packages.hello; + }; + }); +} diff --git a/modules/system/core/nix-settings.nix b/modules/system/core/nix-settings.nix index 540e2ed..3a0cfe6 100644 --- a/modules/system/core/nix-settings.nix +++ b/modules/system/core/nix-settings.nix @@ -5,6 +5,9 @@ inherit system; config.allowUnfree = true; }; + unstablePkgs = import inputs.nixpkgs-unstable { + inherit system; + }; # Make flakeLocation universally addressable flakeLocation = builtins.getEnv "PWD"; };