mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-02-18 07:14:36 +00:00
don't pass selfprivacy-overlay to configuration.nix; nix flake lock
This commit is contained in:
parent
d1d025dda6
commit
50c554e6e7
|
@ -1,4 +1,4 @@
|
||||||
{ userdata, selfprivacy-overlay, config, pkgs, lib, ... }:
|
{ userdata, config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./variables-module.nix
|
./variables-module.nix
|
||||||
|
@ -23,7 +23,6 @@
|
||||||
./git/gitea.nix
|
./git/gitea.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [ (import selfprivacy-overlay) ];
|
|
||||||
# this should be specified in hardware-configuration.nix?
|
# this should be specified in hardware-configuration.nix?
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
|
||||||
|
|
32
flake.lock
32
flake.lock
|
@ -1,5 +1,18 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"hardware-configuration-nix": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1692731346,
|
||||||
|
"narHash": "sha256-rQIpYKwowqbbVVurEl5qNpuPfoRyEUMefoZXrUoO6p8=",
|
||||||
|
"path": "hardware-configuration.nix",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "hardware-configuration-nix",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686476475,
|
"lastModified": 1686476475,
|
||||||
|
@ -17,11 +30,13 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"hardware-configuration-nix": "hardware-configuration-nix",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"selfprivacy-overlay": "selfprivacy-overlay"
|
"selfprivacy-overlay-path": "selfprivacy-overlay-path",
|
||||||
|
"userdata-json": "userdata-json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"selfprivacy-overlay": {
|
"selfprivacy-overlay-path": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689554432,
|
"lastModified": 1689554432,
|
||||||
"narHash": "sha256-hegMIgxBHUuRFbCecQpbjFfTHpduV3VZWr8OINtQO6k=",
|
"narHash": "sha256-hegMIgxBHUuRFbCecQpbjFfTHpduV3VZWr8OINtQO6k=",
|
||||||
|
@ -35,6 +50,19 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git"
|
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"userdata-json": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689259484,
|
||||||
|
"narHash": "sha256-Co3QGsxCjDspP5Nzzu1zICkee5CEq+ORlxSF3bFqbCY=",
|
||||||
|
"path": "userdata/userdata.json",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "userdata-json",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -4,7 +4,7 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs";
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||||||
|
|
||||||
selfprivacy-overlay.url =
|
selfprivacy-overlay-path.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,20 +16,25 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ self
|
{ self
|
||||||
, nixpkgs
|
, nixpkgs
|
||||||
, selfprivacy-overlay
|
, selfprivacy-overlay-path
|
||||||
, 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
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
just-nixos = nixpkgs.lib.nixosSystem {
|
just-nixos = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit system selfprivacy-overlay userdata; };
|
specialArgs = { inherit system userdata; };
|
||||||
modules = [ hardware-configuration ./configuration.nix ];
|
modules = [
|
||||||
|
{ nixpkgs.overlays = [ selfprivacy-overlay ]; }
|
||||||
|
hardware-configuration
|
||||||
|
./configuration.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
7
hardware-configuration.nix
Normal file
7
hardware-configuration.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ modulesPath, ... }:
|
||||||
|
{
|
||||||
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||||
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
boot.initrd.kernelModules = [ "nvme" ];
|
||||||
|
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
|
||||||
|
}
|
Loading…
Reference in a new issue