vanadium: +nix-monitored

This commit is contained in:
Primrose 2025-09-14 19:23:26 +08:00
parent 592aea7271
commit 0e3937d99b
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 53 additions and 20 deletions

View file

@ -8,6 +8,7 @@ in
{ {
config, config,
lib, lib,
pkgs,
... ...
}: let }: let
inherit (lib.modules) mkAliasOptionModule; inherit (lib.modules) mkAliasOptionModule;
@ -41,7 +42,9 @@ in
rocmSupport = true; rocmSupport = true;
}; };
overlays = map import [ overlays =
map import
[
../overlays/agenix.nix ../overlays/agenix.nix
../overlays/disko.nix ../overlays/disko.nix
../overlays/nur.nix ../overlays/nur.nix
@ -61,6 +64,11 @@ in
# removed, but I need it for PLFA! # removed, but I need it for PLFA!
../overlays/pin-emacs28.nix ../overlays/pin-emacs28.nix
]
# use lix everywhere and wrap it with nom
++ [
(import (sources.lix-module + "/overlay.nix") {inherit (sources) lix;})
(import ../overlays/nix-monitored.nix)
]; ];
# Set NIX_PATH and flake registry at the same time # Set NIX_PATH and flake registry at the same time
@ -68,6 +76,8 @@ in
flake.source = sources.nixpkgs; flake.source = sources.nixpkgs;
}; };
nix.package = pkgs.nix-monitored;
system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision; system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision;
} }
@ -113,8 +123,6 @@ in
(sources.nixos-hardware + "/framework/13-inch/7040-amd") (sources.nixos-hardware + "/framework/13-inch/7040-amd")
(import (sources.lix-module + "/module.nix") {inherit (sources) lix;})
# #
# home-manager # home-manager
# #

View file

@ -0,0 +1,11 @@
let
sources = import ../../npins;
in
# The final nix is lix in this case
final: prev: {
nix-monitored =
sources.nix-monitored.asFlake.packages.${final.system}.default
.override {
inherit (final) nix;
};
}

View file

@ -169,6 +169,20 @@
"url": "https://github.com/oxalica/nil/archive/01e573c9e31ba3be7eaa848ba7dfcbd04260163e.tar.gz", "url": "https://github.com/oxalica/nil/archive/01e573c9e31ba3be7eaa848ba7dfcbd04260163e.tar.gz",
"hash": "0j8dix0a29lmszpl0gpv9whrhigs9bj4s2is3rsdwqc6gviqsq92" "hash": "0j8dix0a29lmszpl0gpv9whrhigs9bj4s2is3rsdwqc6gviqsq92"
}, },
"nix-monitored": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "ners",
"repo": "nix-monitored"
},
"branch": "master",
"submodules": false,
"revision": "60f3baa4701d58eab86c2d1d9c3d7e820074d461",
"url": "https://github.com/ners/nix-monitored/archive/60f3baa4701d58eab86c2d1d9c3d7e820074d461.tar.gz",
"hash": "1rdyjmxkvyqd5blbzbwfv2b99krx6rkpdzi1ckyby8i676gf9hv7",
"frozen": true
},
"nix-tree": { "nix-tree": {
"type": "GitRelease", "type": "GitRelease",
"repository": { "repository": {