Compare commits
2 commits
cbc9a87f09
...
96ddd61320
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 96ddd61320 | ||
Geoffrey Frogeye | 044318babc |
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
nvd
|
||||||
nix-diff
|
nix-diff
|
||||||
nix-tree
|
nix-tree
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
./ccc
|
./ccc
|
||||||
./common.nix
|
./common.nix
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
|
./diff
|
||||||
./gaming
|
./gaming
|
||||||
./geoffrey.nix
|
./geoffrey.nix
|
||||||
./printing
|
./printing
|
||||||
|
|
14
os/diff/default.nix
Normal file
14
os/diff/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
system.activationScripts.diff = {
|
||||||
|
supportsDryActivation = true;
|
||||||
|
text = ''
|
||||||
|
if [ -h /run/current-system ]
|
||||||
|
then
|
||||||
|
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue