mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 11:41:26 +00:00
now it's a function, requiring userdata argument
This commit is contained in:
parent
d4af9f4459
commit
82dd9ad2d4
|
@ -1,4 +1,4 @@
|
|||
{ selfprivacy-overlay, config, pkgs, lib, ... }:
|
||||
{ userdata, selfprivacy-overlay, config, pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
|
@ -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; };
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ lib, userdata, ... }:
|
||||
let
|
||||
jsonData = builtins.fromJSON (builtins.readFile ./userdata/userdata.json);
|
||||
jsonData = userdata;
|
||||
in
|
||||
{
|
||||
services.userdata = {
|
||||
|
|
Loading…
Reference in a new issue