about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-04-14 17:09:30 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-04-14 17:09:30 +0200
commite549f90abe858f7cd3e629d70e479d2f626b55a9 (patch)
treee8f135031aab043c90fadbf31f7fb2661aeca972
parentmodules/xdg: Move the rest of the xdg config here (diff)
downloadnixos-config-e549f90abe858f7cd3e629d70e479d2f626b55a9.zip
modules/common: Disable `nixos-shell`
I've never really used it and it uses up ~2GB.
-rw-r--r--modules/common/default.nix50
-rw-r--r--modules/common/nixos_shell_configuration.nix67
2 files changed, 0 insertions, 117 deletions
diff --git a/modules/common/default.nix b/modules/common/default.nix
index ef8d33f7..5b9b83ac 100644
--- a/modules/common/default.nix
+++ b/modules/common/default.nix
@@ -13,15 +13,6 @@
   config,
   pkgs,
   lib,
-  # Needed for nixos-shell
-  libraries,
-  modules,
-  openPRsNixpkgs,
-  packageSets,
-  system,
-  self,
-  externalDependencies,
-  externalBinaries,
   ...
 }: {
   # TODO(@bpeetz): Move this file to default options in their respective modules. <2025-05-31>
@@ -50,47 +41,6 @@
       ];
     };
 
-    nixos-shell = {
-      enable = lib.mkDefault true;
-      configuration = {
-        specialArgs = {
-          inherit
-            libraries
-            modules
-            ;
-        };
-        value = lib.mkMerge [
-          {
-            _module.args = {
-              inherit
-                # extra package sources
-                openPRsNixpkgs
-                packageSets
-                # extra information
-                system
-                # nix registry
-                self
-                externalDependencies
-                # bins
-                # TODO: Integrate these into `pkgs/by-name` <2024-05-22>
-                externalBinaries
-                ;
-            };
-          }
-
-          {
-            require = [
-              ./nixos_shell_configuration.nix
-
-              ../../modules
-              ../../modules/common
-            ];
-          }
-        ];
-      };
-      mounts = {};
-    };
-
     polkit.enable = true;
     power.enable = true;
     xdg.enable = true;
diff --git a/modules/common/nixos_shell_configuration.nix b/modules/common/nixos_shell_configuration.nix
deleted file mode 100644
index d37efbb3..00000000
--- a/modules/common/nixos_shell_configuration.nix
+++ /dev/null
@@ -1,67 +0,0 @@
-# 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;
-      ly.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;
-    };
-
-    disks.enable = false;
-  };
-
-  # We run without state
-  # system.stateVersion = null;
-}