diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-05-17 13:39:56 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-05-17 13:39:56 +0200 |
commit | de11e018dca18d11499debb8102ba6151cc21834 (patch) | |
tree | 22c06529d68394cd19ec7792f5e71c6f2a230b4a /modules/common/nixos_shell_configuration.nix | |
parent | pkgs/default.nix: Migrate to the package arguments (diff) | |
download | nixos-config-de11e018dca18d11499debb8102ba6151cc21834.zip |
modules/nixos-shell: Init
A VM at your disposal. This is based on: https://github.com/Mic92/nixos-shell
Diffstat (limited to '')
-rw-r--r-- | modules/common/nixos_shell_configuration.nix | 68 |
1 files changed, 68 insertions, 0 deletions
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 <benedikt.peetz@b-peetz.de> +# 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. +{...}: { + 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; +} |