flake: set NixOS configs with the current revision of flake in /etc/nixos

This commit is contained in:
Gabriel Arazas 2024-02-04 22:23:20 +08:00
parent 3e898cf0b3
commit 57c0bd546c
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -96,6 +96,11 @@
# The NixOS module that came from flake-parts. # The NixOS module that came from flake-parts.
({ config, lib, ... }: { ({ config, lib, ... }: {
_module.args = defaultExtraArgs; _module.args = defaultExtraArgs;
# Set the NixOS system at the time of evaluation for convenience. Take
# note, we assume that you develop your NixOS configuration somewhere
# not in `/etc/nixos`.
environment.etc.nixos.source = inputs.self;
}) })
]; ];
}; };