Skip to content

Commit

Permalink
nixos/default: set configurationRevision
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 1, 2024
1 parent 561e985 commit eecb585
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/system/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
config,
lib,
pkgs,
flake,
...
}:

Expand Down Expand Up @@ -81,6 +82,8 @@ in
};
};

environment.systemPackages = with pkgs; [ nixos-rebuild-ng ];

# Enable firmware-linux-nonfree
hardware.enableRedistributableFirmware = lib.mkDefault true;

Expand Down Expand Up @@ -115,7 +118,7 @@ in
};
};

environment.systemPackages = with pkgs; [ nixos-rebuild-ng ];
system.configurationRevision = flake.rev or "dirty";

# nixos/modules/misc/version.nix
users.motd = lib.mkIf cfg.motd.enable ''Welcome to '${config.networking.hostName}' running NixOS ${config.system.nixos.version}!'';
Expand Down

0 comments on commit eecb585

Please sign in to comment.