Install nvd
This commit is contained in:
parent
3ec533ec3b
commit
2605cc1015
|
@ -7,6 +7,7 @@
|
||||||
./unlock.nix
|
./unlock.nix
|
||||||
./mpclient.nix
|
./mpclient.nix
|
||||||
./neovim
|
./neovim
|
||||||
|
./nvd.nix
|
||||||
];
|
];
|
||||||
nixpkgs.overlays = import ../../overlays { inherit lib; };
|
nixpkgs.overlays = import ../../overlays { inherit lib; };
|
||||||
|
|
||||||
|
|
9
home-manager/roles/nvd.nix
Normal file
9
home-manager/roles/nvd.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
dag = config.lib.dag;
|
||||||
|
nvd = import pkgs.sources.nvd { inherit pkgs; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.activation.report-changes = dag.entryAnywhere "${nvd}/bin/nvd $oldGenPath $newGenPath";
|
||||||
|
}
|
|
@ -1,9 +1,11 @@
|
||||||
{ pkgs, nixos-rebuild }:
|
{ pkgs, nixos-rebuild }:
|
||||||
let configPath = "/etc/nixos";
|
let
|
||||||
in {
|
configPath = "/etc/nixos";
|
||||||
|
in
|
||||||
|
{
|
||||||
update-system = pkgs.writeHaskellScript {
|
update-system = pkgs.writeHaskellScript {
|
||||||
name = "update-system";
|
name = "update-system";
|
||||||
bins = [ nixos-rebuild pkgs.nix-output-monitor ];
|
bins = [ nixos-rebuild pkgs.nix-output-monitor (import pkgs.sources.nvd { inherit pkgs; }) ];
|
||||||
} ''
|
} ''
|
||||||
main = do
|
main = do
|
||||||
paths <- myNixPath "${configPath}"
|
paths <- myNixPath "${configPath}"
|
||||||
|
@ -11,6 +13,9 @@ in {
|
||||||
setEnv "WITH_SECRETS" "false"
|
setEnv "WITH_SECRETS" "false"
|
||||||
nom_build (paths ++ buildSystemParams ++ ["--no-out-link"] ++ remoteBuildParams ++ fmap toString args)
|
nom_build (paths ++ buildSystemParams ++ ["--no-out-link"] ++ remoteBuildParams ++ fmap toString args)
|
||||||
setEnv "WITH_SECRETS" "true"
|
setEnv "WITH_SECRETS" "true"
|
||||||
|
oldSystem <- readlink "-f" "/run/current-system" |> captureTrim
|
||||||
nixos_rebuild (paths ++ ["switch"] ++ fmap toString args) &!> StdOut |> nom
|
nixos_rebuild (paths ++ ["switch"] ++ fmap toString args) &!> StdOut |> nom
|
||||||
|
newSystem <- readlink "-f" "/run/current-system" |> captureTrim
|
||||||
|
nvd oldSystem newSystem
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,12 @@
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/294d1925af6462e55c76b49624b983036f0093b9.tar.gz",
|
"url": "https://github.com/NixOS/nixpkgs/archive/294d1925af6462e55c76b49624b983036f0093b9.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
|
"nvd": {
|
||||||
|
"branch": "master",
|
||||||
|
"repo": "https://gitlab.com/khumba/nvd.git",
|
||||||
|
"rev": "7cdaa6d818119bd7a51930d990fded5d594c6623",
|
||||||
|
"type": "git"
|
||||||
|
},
|
||||||
"obelisk": {
|
"obelisk": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"description": "Obelisk provides an easy way to develop and deploy your Reflex project for web and mobile",
|
"description": "Obelisk provides an easy way to develop and deploy your Reflex project for web and mobile",
|
||||||
|
|
Loading…
Reference in a new issue