aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/ni/nixos-shell
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/ni/nixos-shell/module.nix7
-rwxr-xr-xmodules/by-name/ni/nixos-shell/nixos-shell.sh2
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/by-name/ni/nixos-shell/module.nix b/modules/by-name/ni/nixos-shell/module.nix
index 219f080d..1a0190c8 100644
--- a/modules/by-name/ni/nixos-shell/module.nix
+++ b/modules/by-name/ni/nixos-shell/module.nix
@@ -11,10 +11,11 @@
lib,
config,
pkgs,
- self,
+ sources,
...
}: let
cfg = config.soispha.nixos-shell;
+ inherit (sources) nixpkgs;
in {
options.soispha.nixos-shell = {
enable = lib.mkEnableOption "nixos-shell";
@@ -85,13 +86,13 @@ in {
};
config = let
- vmSystem = self.inputs.nixpkgs.lib.nixosSystem {
+ vmSystem = nixpkgs.lib.nixosSystem {
inherit (cfg.configuration) specialArgs;
modules = [
{
# TODO(@bpeetz): This should be bumped each release. <2025-05-17>
- system.stateVersion = "25.05";
+ system.stateVersion = "25.11";
}
cfg.configuration.value
diff --git a/modules/by-name/ni/nixos-shell/nixos-shell.sh b/modules/by-name/ni/nixos-shell/nixos-shell.sh
index 390e60b1..3b34019a 100755
--- a/modules/by-name/ni/nixos-shell/nixos-shell.sh
+++ b/modules/by-name/ni/nixos-shell/nixos-shell.sh
@@ -10,7 +10,7 @@
# You should have received a copy of the License along with this program.
# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
-SHARED_DIR="$(mktemp --directory)"
+SHARED_DIR="$(mktemp -t --directory "nixos_shell_XXXXXXXXX")"
cleanup() {
rm --recursive "$SHARED_DIR"
}