diff --git a/flake.lock b/flake.lock index 1fba6f8..379d697 100644 --- a/flake.lock +++ b/flake.lock @@ -659,6 +659,22 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1773646010, + "narHash": "sha256-iYrs97hS7p5u4lQzuNWzuALGIOdkPXvjz7bviiBjUu8=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "5b2c2d84341b2afb5647081c1386a80d7a8d8605", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_2": { "locked": { "lastModified": 1752480373, @@ -851,6 +867,7 @@ "nix-openclaw": "nix-openclaw", "nixcord": "nixcord", "nixpkgs": "nixpkgs_6", + "nixpkgs-unstable": "nixpkgs-unstable", "noctalia": "noctalia", "sops-nix": "sops-nix", "spicetify-nix": "spicetify-nix", diff --git a/flake.nix b/flake.nix index d7769d8..33c7dc7 100644 --- a/flake.nix +++ b/flake.nix @@ -3,6 +3,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; diff --git a/modules/base/devenv.nix b/modules/base/devenv.nix new file mode 100644 index 0000000..20e8eff --- /dev/null +++ b/modules/base/devenv.nix @@ -0,0 +1,13 @@ +{ + inputs, + config, + ... +}: { + flake.modules.nixos.base = {pkgs, ...}: let + system = pkgs.stdenv.buildPlatform.system; + devenv = (import inputs.nixpkgs-unstable {system = system;}).devenv; + in { + environment.systemPackages = [devenv]; + nix.settings.trusted-users = ["root" config.flake.meta.user.name]; + }; +}