From 594e15afa88ad1df1b1c4b65c04f420d09d70990 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 11 Jul 2023 12:38:01 +0200 Subject: old computer challenge: limit kusanagi to 512M+1CPU, isolate icewm config --- nixos/icewm.nix | 14 ++++++++++++++ nixos/kusanagi.nix | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 nixos/icewm.nix (limited to 'nixos') diff --git a/nixos/icewm.nix b/nixos/icewm.nix new file mode 100644 index 0000000..dea6b91 --- /dev/null +++ b/nixos/icewm.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, modulesPath, ... }: +{ + services.xserver.windowManager.icewm.enable = true; + services.xserver.displayManager.sx.enable = true; + + environment.systemPackages = with pkgs; [ + i3lock + feh + acpi + netsurf.browser + midori + sylpheed + ]; +} diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix index 47ede9e..3cbbef3 100644 --- a/nixos/kusanagi.nix +++ b/nixos/kusanagi.nix @@ -7,7 +7,8 @@ imports = [ (modulesPath + "/installer/scan/not-detected.nix") ./common.nix - ./kde.nix + #./kde.nix + ./icewm.nix #./gnome.nix ]; @@ -23,6 +24,12 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + # Old computer challenge + boot.kernelParams = [ + "maxcpus=1" + "mem=512M" + ]; + boot.initrd.luks.devices = { crypted = { device = "/dev/disk/by-uuid/e3271725-effb-4b00-a5d4-8a7a64f55420"; -- cgit v1.2.3