now it's a function, requiring userdata argument

This commit is contained in:
Alexander Tomokhov 2023-07-17 04:22:20 +04:00
parent d4af9f4459
commit 82dd9ad2d4
3 changed files with 4 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ selfprivacy-overlay, config, pkgs, lib, ... }:
{ userdata, selfprivacy-overlay, config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix

View file

@ -12,12 +12,9 @@
outputs = { self, nixpkgs, selfprivacy-overlay }:
let
system = "x86_64-linux";
# pkgs = import nixpkgs { inherit system; };
userdata = builtins.fromJSON (builtins.readFile ./userdata/userdata.json);
in
{
nixosConfigurations = {
nixosConfigurations-fun = userdata: {
just-nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system selfprivacy-overlay userdata; };

View file

@ -1,6 +1,6 @@
{ pkgs, lib, ... }:
{ lib, userdata, ... }:
let
jsonData = builtins.fromJSON (builtins.readFile ./userdata/userdata.json);
jsonData = userdata;
in
{
services.userdata = {