mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 19:41:30 +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 = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
|
@ -12,12 +12,9 @@
|
||||||
outputs = { self, nixpkgs, selfprivacy-overlay }:
|
outputs = { self, nixpkgs, selfprivacy-overlay }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
# pkgs = import nixpkgs { inherit system; };
|
|
||||||
userdata = builtins.fromJSON (builtins.readFile ./userdata/userdata.json);
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations-fun = userdata: {
|
||||||
just-nixos = nixpkgs.lib.nixosSystem {
|
just-nixos = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit system selfprivacy-overlay userdata; };
|
specialArgs = { inherit system selfprivacy-overlay userdata; };
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, ... }:
|
{ lib, userdata, ... }:
|
||||||
let
|
let
|
||||||
jsonData = builtins.fromJSON (builtins.readFile ./userdata/userdata.json);
|
jsonData = userdata;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.userdata = {
|
services.userdata = {
|
||||||
|
|
Loading…
Reference in a new issue