parent
131299587c
commit
9aca532b78
10 changed files with 66 additions and 81 deletions
devices/servivi/modules
flake.lockflake.nixinputs
lib/flake
nixosModules/base/packages
overlays
packages/librespot-auth
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
mainUser,
|
mainUser,
|
||||||
|
nix-eval-jobs,
|
||||||
nix-fast-build,
|
nix-fast-build,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
@ -9,7 +10,7 @@
|
||||||
|
|
||||||
nix-fast-build-pkg = nix-fast-build.packages.${pkgs.system}.nix-fast-build.override {
|
nix-fast-build-pkg = nix-fast-build.packages.${pkgs.system}.nix-fast-build.override {
|
||||||
nix-eval-jobs =
|
nix-eval-jobs =
|
||||||
pkgs.nix-eval-jobs.override {
|
nix-eval-jobs.packages.${pkgs.system}.default.override {
|
||||||
nix = config.nix.package;
|
nix = config.nix.package;
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
|
@ -46,6 +47,7 @@
|
||||||
in {
|
in {
|
||||||
services.nix-serve = {
|
services.nix-serve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.nix-serve-ng;
|
||||||
secretKeyFile = secrets.binary-cache-key.path;
|
secretKeyFile = secrets.binary-cache-key.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
93
flake.lock
generated
93
flake.lock
generated
|
@ -349,28 +349,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs-lib": [
|
|
||||||
"nixpkgs-wayland",
|
|
||||||
"nix-eval-jobs",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1722555600,
|
|
||||||
"narHash": "sha256-XOQkdLafnb/p9ij77byFQjDf5m5QYl9b2REiVClC+x4=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"rev": "8471fe90ad337a8074e957b69ca4d0089218391d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "flake-parts",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-root": {
|
"flake-root": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713493429,
|
"lastModified": 1713493429,
|
||||||
|
@ -1165,17 +1143,23 @@
|
||||||
},
|
},
|
||||||
"nix-eval-jobs": {
|
"nix-eval-jobs": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": [
|
||||||
|
"flake-parts"
|
||||||
|
],
|
||||||
"nix-github-actions": "nix-github-actions_2",
|
"nix-github-actions": "nix-github-actions_2",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": [
|
||||||
"treefmt-nix": "treefmt-nix"
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"treefmt-nix": [
|
||||||
|
"treefmt-nix"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732631228,
|
"lastModified": 1733815740,
|
||||||
"narHash": "sha256-/7Wyhp00yecUMPNz79gGZpjos8OLHqOfdiWWIQfZA1M=",
|
"narHash": "sha256-63i7TgirD3FiJM1z8ZuOOcXWj4ZhgK357NHmf90WNig=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-eval-jobs",
|
"repo": "nix-eval-jobs",
|
||||||
"rev": "8f56354b794624689851b2d86c2ce0209cc8f0cf",
|
"rev": "8e82a79fe9329f3be4836ad45d4edf2383e7723a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1285,7 +1269,6 @@
|
||||||
"nix-github-actions_2": {
|
"nix-github-actions_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs-wayland",
|
|
||||||
"nix-eval-jobs",
|
"nix-eval-jobs",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
@ -1365,17 +1348,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732342928,
|
"lastModified": 1732760430,
|
||||||
"narHash": "sha256-87zIj5gt1wY0UmRXHnf4ydCJoweOX4HCS/nEbvEF0b8=",
|
"narHash": "sha256-HC+kuzNIL5q87s5ISeJQk3Dv8pqg8U8wDyRSBrpFeFY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixd",
|
"repo": "nixd",
|
||||||
"rev": "5507bb141efc11cf548e87e39b61da66dfbca9e5",
|
"rev": "f12e2f77094ac73c1b1101390c02ec5bcf69ad46",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixd",
|
"repo": "nixd",
|
||||||
"rev": "5507bb141efc11cf548e87e39b61da66dfbca9e5",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1464,7 +1446,9 @@
|
||||||
"lib-aggregate": [
|
"lib-aggregate": [
|
||||||
"lib-aggregate"
|
"lib-aggregate"
|
||||||
],
|
],
|
||||||
"nix-eval-jobs": "nix-eval-jobs",
|
"nix-eval-jobs": [
|
||||||
|
"nix-eval-jobs"
|
||||||
|
],
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
|
@ -1483,22 +1467,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1732238832,
|
|
||||||
"narHash": "sha256-sQxuJm8rHY20xq6Ah+GwIUkF95tWjGRd1X8xF+Pkk38=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "8edf06bea5bcbee082df1b7369ff973b91618b8d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nmd": {
|
"nmd": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -1725,6 +1693,7 @@
|
||||||
"mpv-touch-gestures-src": "mpv-touch-gestures-src",
|
"mpv-touch-gestures-src": "mpv-touch-gestures-src",
|
||||||
"netdaemon-src": "netdaemon-src",
|
"netdaemon-src": "netdaemon-src",
|
||||||
"nh": "nh",
|
"nh": "nh",
|
||||||
|
"nix-eval-jobs": "nix-eval-jobs",
|
||||||
"nix-fast-build": "nix-fast-build",
|
"nix-fast-build": "nix-fast-build",
|
||||||
"nix-gaming": "nix-gaming",
|
"nix-gaming": "nix-gaming",
|
||||||
"nix-index-db": "nix-index-db",
|
"nix-index-db": "nix-index-db",
|
||||||
|
@ -1747,7 +1716,7 @@
|
||||||
"spotifywebapi-src": "spotifywebapi-src",
|
"spotifywebapi-src": "spotifywebapi-src",
|
||||||
"systems": "systems",
|
"systems": "systems",
|
||||||
"trash-d-src": "trash-d-src",
|
"trash-d-src": "trash-d-src",
|
||||||
"treefmt-nix": "treefmt-nix_2",
|
"treefmt-nix": "treefmt-nix",
|
||||||
"ts-for-gir-src": "ts-for-gir-src",
|
"ts-for-gir-src": "ts-for-gir-src",
|
||||||
"tuya-local-src": "tuya-local-src",
|
"tuya-local-src": "tuya-local-src",
|
||||||
"vimplugin-easytables-src": "vimplugin-easytables-src",
|
"vimplugin-easytables-src": "vimplugin-easytables-src",
|
||||||
|
@ -1911,28 +1880,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs-wayland",
|
|
||||||
"nix-eval-jobs",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1723303070,
|
|
||||||
"narHash": "sha256-krGNVA30yptyRonohQ+i9cnK+CfCpedg6z3qzqVJcTs=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"rev": "14c092e0326de759e16b37535161b3cb9770cea3",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "treefmt-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"treefmt-nix_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
|
12
flake.nix
12
flake.nix
|
@ -273,6 +273,16 @@
|
||||||
repo = "nh";
|
repo = "nh";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
|
nix-eval-jobs = {
|
||||||
|
inputs = {
|
||||||
|
flake-parts.follows = "flake-parts";
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
treefmt-nix.follows = "treefmt-nix";
|
||||||
|
};
|
||||||
|
owner = "nix-community";
|
||||||
|
repo = "nix-eval-jobs";
|
||||||
|
type = "github";
|
||||||
|
};
|
||||||
nix-fast-build = {
|
nix-fast-build = {
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-parts.follows = "flake-parts";
|
flake-parts.follows = "flake-parts";
|
||||||
|
@ -315,7 +325,6 @@
|
||||||
};
|
};
|
||||||
owner = "nix-community";
|
owner = "nix-community";
|
||||||
repo = "nixd";
|
repo = "nixd";
|
||||||
rev = "5507bb141efc11cf548e87e39b61da66dfbca9e5";
|
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
@ -327,6 +336,7 @@
|
||||||
nixpkgs-wayland = {
|
nixpkgs-wayland = {
|
||||||
inputs = {
|
inputs = {
|
||||||
lib-aggregate.follows = "lib-aggregate";
|
lib-aggregate.follows = "lib-aggregate";
|
||||||
|
nix-eval-jobs.follows = "nix-eval-jobs";
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
owner = "nix-community";
|
owner = "nix-community";
|
||||||
|
|
|
@ -9,6 +9,11 @@ let
|
||||||
repo = "nix-fast-build";
|
repo = "nix-fast-build";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix-eval-jobs = mkDep {
|
||||||
|
owner = "nix-community";
|
||||||
|
repo = "nix-eval-jobs";
|
||||||
|
};
|
||||||
|
|
||||||
nix-index-db = mkDep {
|
nix-index-db = mkDep {
|
||||||
owner = "Mic92";
|
owner = "Mic92";
|
||||||
repo = "nix-index-database";
|
repo = "nix-index-database";
|
||||||
|
@ -55,9 +60,6 @@ let
|
||||||
nixd = mkDep {
|
nixd = mkDep {
|
||||||
owner = "nix-community";
|
owner = "nix-community";
|
||||||
repo = "nixd";
|
repo = "nixd";
|
||||||
|
|
||||||
# FIXME: stay on nix 2.24 for now
|
|
||||||
rev = "5507bb141efc11cf548e87e39b61da66dfbca9e5";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ in rec {
|
||||||
(mkOverride "flake-parts")
|
(mkOverride "flake-parts")
|
||||||
(mkOverride "treefmt-nix")
|
(mkOverride "treefmt-nix")
|
||||||
(mkOverride "lib-aggregate")
|
(mkOverride "lib-aggregate")
|
||||||
|
(mkOverride "nix-eval-jobs")
|
||||||
];
|
];
|
||||||
|
|
||||||
mkDep = info: mkInput (recursiveUpdate info {inputs.nixpkgs.follows = "nixpkgs";});
|
mkDep = info: mkInput (recursiveUpdate info {inputs.nixpkgs.follows = "nixpkgs";});
|
||||||
|
|
|
@ -4,11 +4,17 @@ inputs: rec {
|
||||||
system,
|
system,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
cfg ? {},
|
cfg ? {},
|
||||||
|
nix ? null,
|
||||||
cudaSupport ? false,
|
cudaSupport ? false,
|
||||||
}:
|
}:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [inputs.self.overlays.build-failures] ++ (cfg.overlays or []);
|
overlays =
|
||||||
|
[
|
||||||
|
(inputs.self.overlays.nix-version {inherit nix;})
|
||||||
|
inputs.self.overlays.build-failures
|
||||||
|
]
|
||||||
|
++ (cfg.overlays or []);
|
||||||
config =
|
config =
|
||||||
{
|
{
|
||||||
inherit cudaSupport;
|
inherit cudaSupport;
|
||||||
|
@ -24,6 +30,7 @@ inputs: rec {
|
||||||
}: ({config, ...}: let
|
}: ({config, ...}: let
|
||||||
pkgs = mkPkgs {
|
pkgs = mkPkgs {
|
||||||
cfg = config.nixpkgs;
|
cfg = config.nixpkgs;
|
||||||
|
nix = config.nix.package;
|
||||||
inherit system cudaSupport;
|
inherit system cudaSupport;
|
||||||
inherit (inputs) nixpkgs;
|
inherit (inputs) nixpkgs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -100,7 +100,7 @@ in {
|
||||||
;
|
;
|
||||||
})
|
})
|
||||||
++ [
|
++ [
|
||||||
# This could help as well: nix derivation show -r /run/current-system
|
# TODO: `depOf` program that looks through `nix derivation show -r /run/current-system`
|
||||||
(pkgs.writeShellApplication {
|
(pkgs.writeShellApplication {
|
||||||
name = "listDerivs";
|
name = "listDerivs";
|
||||||
text = ''
|
text = ''
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
build-failures = import ./build-failures;
|
build-failures = import ./build-failures;
|
||||||
|
nix-version = import ./nix-version;
|
||||||
xdg-desktop-portal-kde = import ./xdg-desktop-portal-kde;
|
xdg-desktop-portal-kde = import ./xdg-desktop-portal-kde;
|
||||||
}
|
}
|
||||||
|
|
15
overlays/nix-version/default.nix
Normal file
15
overlays/nix-version/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{nix ? null}: (
|
||||||
|
final: prev:
|
||||||
|
builtins.mapAttrs
|
||||||
|
(n: v:
|
||||||
|
if nix == null
|
||||||
|
then prev.${n}
|
||||||
|
else v)
|
||||||
|
{
|
||||||
|
inherit nix;
|
||||||
|
|
||||||
|
nix-serve-ng = prev.nix-serve-ng.override {
|
||||||
|
inherit nix;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
|
@ -1,4 +1,3 @@
|
||||||
# FIXME: the source appears to be deprecated https://github.com/dspearson/librespot-auth
|
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
@ -12,6 +11,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
pname = "librespot-auth";
|
pname = "librespot-auth";
|
||||||
version = "0.1.1";
|
version = "0.1.1";
|
||||||
|
|
||||||
|
# deprecated https://github.com/dspearson/librespot-auth
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dspearson";
|
owner = "dspearson";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
|
|
Loading…
Add table
Reference in a new issue