nixos: nix: use nix-monitored

This commit is contained in:
Guanran Wang 2023-12-22 09:48:31 +08:00
parent d20bff05b3
commit fb91a29e05
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
4 changed files with 68 additions and 4 deletions

View file

@ -329,6 +329,44 @@
"type": "github" "type": "github"
} }
}, },
"nix-filter": {
"locked": {
"lastModified": 1701697642,
"narHash": "sha256-L217WytWZHSY8GW9Gx1A64OnNctbuDbfslaTEofXXRw=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "c843418ecfd0344ecb85844b082ff5675e02c443",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nix-monitored": {
"inputs": {
"nix-filter": [
"nix-filter"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1692605628,
"narHash": "sha256-jBasvDCk9V32JuwtPy1G4KyVAc2eaBSf2X5eRNQgIkY=",
"owner": "ners",
"repo": "nix-monitored",
"rev": "6be92b0c1eca7ef501b4f92735885e7cb4db414b",
"type": "github"
},
"original": {
"owner": "ners",
"repo": "nix-monitored",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1702453208, "lastModified": 1702453208,
@ -519,6 +557,8 @@
"impermanence": "impermanence", "impermanence": "impermanence",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-filter": "nix-filter",
"nix-monitored": "nix-monitored",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpak": "nixpak", "nixpak": "nixpak",
"nixpak-pkgs": "nixpak-pkgs", "nixpak-pkgs": "nixpak-pkgs",

View file

@ -54,6 +54,11 @@
url = "github:LnL7/nix-darwin"; url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-monitored = {
url = "github:ners/nix-monitored";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nix-filter.follows = "nix-filter";
};
nixos-hardware = { nixos-hardware = {
url = "github:NixOS/nixos-hardware"; url = "github:NixOS/nixos-hardware";
}; };
@ -108,6 +113,9 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems-linux"; inputs.systems.follows = "systems-linux";
}; };
nix-filter = {
url = "github:numtide/nix-filter";
};
nvfetcher = { nvfetcher = {
url = "github:berberman/nvfetcher"; url = "github:berberman/nvfetcher";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -127,7 +135,6 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils"; inputs.flake-utils.follows = "flake-utils";
}; };
wlroots = { wlroots = {
type = "gitlab"; type = "gitlab";
host = "gitlab.freedesktop.org"; host = "gitlab.freedesktop.org";
@ -142,9 +149,6 @@
inputs.systems.follows = "systems-linux"; inputs.systems.follows = "systems-linux";
}; };
# TODO: Unused, Soon(TM)
#daeuniverse.url = "github:daeuniverse/flake.nix";
## Non-Flake ## Non-Flake
### My NeoVim configuration ### My NeoVim configuration
nvim = { nvim = {

View file

@ -3,5 +3,6 @@
./flake.nix ./flake.nix
./nix.nix ./nix.nix
./gc.nix ./gc.nix
./monitor.nix
]; ];
} }

View file

@ -0,0 +1,19 @@
{
pkgs,
inputs,
...
}: let
nom = inputs.nix-monitored.packages.${pkgs.system}.default;
in {
nix.package = nom;
nixpkgs.overlays = [
(_self: super: {
nixos-rebuild = super.nixos-rebuild.override {
nix = super.nom;
};
nix-direnv = super.nix-direnv.override {
nix = super.nom;
};
})
];
}