mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
added nvd diff after activating
This commit is contained in:
parent
11b1eb654d
commit
e57560d0b5
4 changed files with 16 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
imports = [ ./fixes.nix ];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
@ -6,6 +6,10 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "video" "libvirtd" ];
|
||||
};
|
||||
system.activationScripts.report-home-manager-changes = ''
|
||||
PATH=$PATH:${lib.makeBinPath [ pkgs.nvd pkgs.nix ]}
|
||||
nvd diff $(ls -dv /nix/var/nix/profiles/per-user/rouven/home-manager-*-link | tail -2)
|
||||
'';
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue