mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-26 04:51:26 +00:00
do not import selfprivacy overlay path, but use flake overlay output
This commit is contained in:
parent
50c554e6e7
commit
e4473ec733
|
@ -32,11 +32,11 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hardware-configuration-nix": "hardware-configuration-nix",
|
"hardware-configuration-nix": "hardware-configuration-nix",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"selfprivacy-overlay-path": "selfprivacy-overlay-path",
|
"selfprivacy-overlay": "selfprivacy-overlay",
|
||||||
"userdata-json": "userdata-json"
|
"userdata-json": "userdata-json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"selfprivacy-overlay-path": {
|
"selfprivacy-overlay": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689554432,
|
"lastModified": 1689554432,
|
||||||
"narHash": "sha256-hegMIgxBHUuRFbCecQpbjFfTHpduV3VZWr8OINtQO6k=",
|
"narHash": "sha256-hegMIgxBHUuRFbCecQpbjFfTHpduV3VZWr8OINtQO6k=",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs";
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||||||
|
|
||||||
selfprivacy-overlay-path.url =
|
selfprivacy-overlay.url =
|
||||||
"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git";
|
"git+https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git";
|
||||||
|
|
||||||
# these inputs are expected to be set by the caller
|
# these inputs are expected to be set by the caller
|
||||||
|
@ -16,13 +16,12 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ self
|
{ self
|
||||||
, nixpkgs
|
, nixpkgs
|
||||||
, selfprivacy-overlay-path
|
, selfprivacy-overlay
|
||||||
, userdata-json
|
, userdata-json
|
||||||
, hardware-configuration-nix
|
, hardware-configuration-nix
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
selfprivacy-overlay = import selfprivacy-overlay-path;
|
|
||||||
userdata = builtins.fromJSON (builtins.readFile userdata-json);
|
userdata = builtins.fromJSON (builtins.readFile userdata-json);
|
||||||
hardware-configuration = import hardware-configuration-nix;
|
hardware-configuration = import hardware-configuration-nix;
|
||||||
in
|
in
|
||||||
|
@ -31,7 +30,7 @@
|
||||||
just-nixos = nixpkgs.lib.nixosSystem {
|
just-nixos = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit system userdata; };
|
specialArgs = { inherit system userdata; };
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.overlays = [ selfprivacy-overlay ]; }
|
{ nixpkgs.overlays = [ selfprivacy-overlay.overlay ]; }
|
||||||
hardware-configuration
|
hardware-configuration
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue