diff options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/95theme.nix | 46 | ||||
-rw-r--r-- | nixos/common.nix | 15 | ||||
-rw-r--r-- | nixos/lindy.nix | 9 |
3 files changed, 66 insertions, 4 deletions
diff --git a/nixos/95theme.nix b/nixos/95theme.nix new file mode 100644 index 0000000..c17e336 --- /dev/null +++ b/nixos/95theme.nix @@ -0,0 +1,46 @@ +{ config, lib, pkgs, modulesPath, ... }: +let chicago95 = + pkgs.stdenv.mkDerivation rec { + pname = "chicago95"; + version = "20230216"; + + src = pkgs.fetchgit { + url = "https://github.com/grassmunk/Chicago95.git"; + rev = "4c39951284add04941adc6ce5a68a778590b93d1"; + hash = "sha256-PwNuVAcJ6FZlALdHAvgX8H56bOkZ0llXGd09ETj4enQ="; + }; + + nativeBuildInputs = with pkgs; [ + which + ]; + + installPhase = '' + pwd + ls -lah + for p in cursors fonts gtk_theme icons backgrounds doc; do + make install_$p DESTDIR=$out prefix= + done + ''; + + meta = with lib; { + description = "A rendition of everyone's favorite 1995 Microsoft operating system for Linux"; + homepage = "https://github.com/grassmunk/Chicago95"; + platforms = platforms.all; + }; + }; +in +{ + services.xserver.windowManager.icewm.enable = true; + services.xserver.windowManager.windowmaker.enable = true; + services.xserver.desktopManager.xfce.enable = true; + + environment.systemPackages = with pkgs; [ + # theming + onestepback + feh + lxappearance + chicago95 + libsForQt5.qtstyleplugins + libsForQt5.qt5ct + ]; +} diff --git a/nixos/common.nix b/nixos/common.nix index bbeb09b..9f3abbe 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -86,6 +86,8 @@ in # Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable = true; + # -------------------- users --------------------- + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.lx = { isNormalUser = true; @@ -98,6 +100,8 @@ in ]; }; + # -------------------- packages --------------------- + nixpkgs.config.allowUnfree = true; nix.gc.automatic = true; nix.gc.options = "--delete-older-than 30d"; @@ -164,7 +168,6 @@ in file alacritty - st firefox qutebrowser (tor-browser-bundle-bin.override { useHardenedMalloc = false; }) @@ -185,6 +188,16 @@ in nicotine-plus gnome.seahorse gqrx + + (st.overrideAttrs (oldAttrs: rec { + patches = [ + #../st/st-colorschemes-0.8.5.diff + #../st/st-copyurl-0.8.4.diff + ]; + configFile = writeText "config.def.h" (builtins.readFile ../st/config.h); + postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h"; + })) + ]; programs.vim.defaultEditor = true; diff --git a/nixos/lindy.nix b/nixos/lindy.nix index dac7933..3ddeaf2 100644 --- a/nixos/lindy.nix +++ b/nixos/lindy.nix @@ -1,6 +1,3 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. { config, lib, pkgs, modulesPath, ... }: { @@ -8,6 +5,7 @@ (modulesPath + "/installer/scan/not-detected.nix") ./common.nix ./kde.nix + #./95theme.nix #./gnome.nix #./fdn-vpn.nix ]; @@ -93,6 +91,11 @@ Kogami UUID=61534c91-df18-4c71-9244-54e677f5d4fa /root/kogami_key virtualisation.virtualbox.host.enable = true; users.users.lx.extraGroups = [ "docker" "vboxusers" ]; + # Making dev work available outside + networking.firewall.allowedTCPPorts = [ + 8910 + ]; + # GnuPG agent at system level, if at home level conflicts with arch programs.gnupg.agent = { enable = true; |