From de11e018dca18d11499debb8102ba6151cc21834 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 17 May 2025 13:39:56 +0200 Subject: modules/nixos-shell: Init A VM at your disposal. This is based on: https://github.com/Mic92/nixos-shell --- modules/common/nixos_shell_configuration.nix | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 modules/common/nixos_shell_configuration.nix (limited to 'modules/common/nixos_shell_configuration.nix') diff --git a/modules/common/nixos_shell_configuration.nix b/modules/common/nixos_shell_configuration.nix new file mode 100644 index 00000000..bbaa8477 --- /dev/null +++ b/modules/common/nixos_shell_configuration.nix @@ -0,0 +1,68 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . +{...}: { + soispha = { + networking = { + enable = true; + hostName = "lahmu"; + mode = "systemd-networkd"; + }; + + nixos-shell.enable = false; + + nixpkgs = { + enable = true; + systemName = "x86_64-linux"; + }; + + services = { + unison.enable = false; + backup = { + storagebox.enable = false; + local.enable = false; + }; + }; + + programs = { + river.enable = false; + + # We don't have access to the age secrets. + atuin.enableAge = false; + taskwarrior.enableAge = false; + }; + + locale = { + enable = true; + keyMap = "us"; + }; + + users = { + enable = true; + enableDeprecatedPlugdev = true; + + # Make logging in impossible. + # (This also removes root a obvious access-point from the virtual machine) + hashedPassword = ""; + }; + }; + + soispha = { + hardware = { + enable = false; + enableGraphics = false; + cpuType = "vm"; + }; + + disks.enable = false; + }; + + # We run without state + # system.stateVersion = null; +} -- cgit 1.4.1