summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-07-11 12:38:01 +0200
committerAlex Auvolat <alex@adnab.me>2023-07-11 12:38:01 +0200
commit594e15afa88ad1df1b1c4b65c04f420d09d70990 (patch)
treeac4e17c07d29532d56fdb1cdb13ec6f495e64ccf /nixos
parent5f8b80849873bacc22840b092e178ffc7880c237 (diff)
downloaduser-config-594e15afa88ad1df1b1c4b65c04f420d09d70990.tar.gz
user-config-594e15afa88ad1df1b1c4b65c04f420d09d70990.zip
old computer challenge: limit kusanagi to 512M+1CPU, isolate icewm config
Diffstat (limited to 'nixos')
-rw-r--r--nixos/icewm.nix14
-rw-r--r--nixos/kusanagi.nix9
2 files changed, 22 insertions, 1 deletions
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";