diff options
author | Alex Auvolat <alex@adnab.me> | 2023-07-11 12:38:01 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-07-11 12:38:01 +0200 |
commit | 594e15afa88ad1df1b1c4b65c04f420d09d70990 (patch) | |
tree | ac4e17c07d29532d56fdb1cdb13ec6f495e64ccf | |
parent | 5f8b80849873bacc22840b092e178ffc7880c237 (diff) | |
download | user-config-594e15afa88ad1df1b1c4b65c04f420d09d70990.tar.gz user-config-594e15afa88ad1df1b1c4b65c04f420d09d70990.zip |
old computer challenge: limit kusanagi to 512M+1CPU, isolate icewm config
-rw-r--r-- | icewm/keys | 1 | ||||
-rw-r--r-- | nixos/icewm.nix | 14 | ||||
-rw-r--r-- | nixos/kusanagi.nix | 9 | ||||
-rw-r--r-- | nixpkgs/common.nix | 5 |
4 files changed, 28 insertions, 1 deletions
@@ -1,3 +1,4 @@ key "Super+Enter" st key "Super+Shift+r" icewm --restart +key "Super+Shift+x" i3lock -c 000000 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"; diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix index b80b0f4..b0adf33 100644 --- a/nixpkgs/common.nix +++ b/nixpkgs/common.nix @@ -48,6 +48,9 @@ home.file = { ".vim/coc-settings.json".source = ../vim/coc-settings.json; ".config/tmux/tmux.conf".source = ../tmux/tmux.conf; + ".config/sx/sxrc".text = '' + icewm-session + ''; ".config/icewm/preferences".source = ../icewm/preferences; ".config/icewm/keys".source = ../icewm/keys; ".config/icewm/menu".source = ../icewm/menu; @@ -56,6 +59,8 @@ prog "Terminal" xterm st prog "Qutebrowser" ${pkgs.qutebrowser}/share/icons/hicolor/32x32/apps/qutebrowser.png qutebrowser prog "Firefox" ${pkgs.firefox}/share/icons/hicolor/32x32/apps/firefox.png firefox + prog "Midori" ${pkgs.midori}/share/icons/hicolor/22x22/apps/org.midori_browser.Midori.png midori + prog "Sylpheed" ${pkgs.sylpheed}/share/pixmaps/sylpheed.png sylpheed prog "Thunderbird" ${pkgs.thunderbird}/share/icons/hicolor/32x32/apps/thunderbird.png thunderbird prog "Spotify" ${pkgs.spotify}/share/icons/hicolor/32x32/apps/spotify-client.png spotify ''; |