diff --git a/flake.nix b/flake.nix index f9e9121..0df69a3 100644 --- a/flake.nix +++ b/flake.nix @@ -42,8 +42,13 @@ ]; perSystem = - { pkgs, ... }: + { pkgs, system, ... }: { + _module.args.pkgs = import inputs.nixpkgs { + inherit system; + config.allowUnfree = true; + }; + formatter = pkgs.nixfmt; }; diff --git a/nixos/common.nix b/nixos/common.nix index 62e0aad..b4ae10c 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -118,10 +118,10 @@ in nixpkgs.config.allowUnfree = true; - environment.etc."nixos/current".source = lib.cleanSource ./..; - system = { configurationRevision = self.rev or self.dirtyRev; stateVersion = "25.11"; }; + + environment.etc."nixos/current".source = lib.cleanSource ./..; }