nixosConfiguration-fun takes a set as an argument

This set must contain:
- hardware-configuration
- userdata (parsed)
This commit is contained in:
Alexander Tomokhov 2023-11-06 11:40:32 +04:00
parent 4afa777e7c
commit 7cee132d8e
2 changed files with 3 additions and 6 deletions

View file

@ -1,7 +1,6 @@
{ userdata, selfprivacy-overlay, config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
./variables-module.nix
./variables.nix
./files.nix

View file

@ -1,8 +1,7 @@
{
description = "Selfprivacy NixOS configuration flake";
description = "SelfPrivacy NixOS configuration flake";
inputs = {
#nixpkgs.url = "https://github.com/NixOS/nixpkgs/archive/eef86b8a942913a828b9ef13722835f359deef29.tar.gz";
nixpkgs.url = "github:nixos/nixpkgs";
selfprivacy-overlay.url =
"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git";
@ -13,11 +12,10 @@
system = "x86_64-linux";
in
{
nixosConfigurations-fun = userdata: {
nixosConfigurations-fun = { hardware-configuration, userdata }: {
just-nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system selfprivacy-overlay userdata; };
modules = [ ./configuration.nix ];
modules = [ hardware-configuration ./configuration.nix ];
};
};
};