Commit 5fc96a3b authored by fpletz's avatar fpletz 🚧
Browse files

use nixpkgs from flakes and set configuration rev

parent 29e522f5
......@@ -26,10 +26,6 @@ with lib;
nix.maxJobs = 3;
nix.buildCores = 2;
nix.nixPath = mkForce [
"nixos-config=/dontuse"
"/nix/var/nix/profiles/per-user/root/channels"
];
services.openssh.enable = true;
......
......@@ -6,7 +6,7 @@
utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, utils, ... }: let
outputs = { self, nixpkgs, utils, ... }: let
supportedSystems = utils.lib.defaultSystems;
in utils.lib.eachSystem supportedSystems (system: let
pkgs = import nixpkgs { inherit system; };
......@@ -33,6 +33,12 @@
services.fail2ban.enable = true;
zramSwap.enable = true;
nixpkgs.system = "x86_64-linux";
# include git rev of this repo/flake into the nixos-version
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
# set nixpkgs flake of the target to the nixpkgs verion of the deployment
nix.registry.nixpkgs.flake = nixpkgs;
nix.nixPath = lib.mkForce [ "nixpkgs=${nixpkgs}" "nixos-config=/dontuse" ];
};
briafzentrum = { name, nodes, pkgs, ... }: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment