From 280e1bbe5e733128a451260685cc8ecd10a042a3 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 17 Oct 2026 21:53:43 +1300 Subject: feat: Dendritic pattern This re-write was done with the help of claude, and still needs a decent amount of changes before it properly follows the dendritic pattern --- modules/home-manager/i3/default.nix | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 modules/home-manager/i3/default.nix (limited to 'modules/home-manager/i3/default.nix') diff --git a/modules/home-manager/i3/default.nix b/modules/home-manager/i3/default.nix new file mode 100644 index 0000000..982aea1 --- /dev/null +++ b/modules/home-manager/i3/default.nix @@ -0,0 +1,49 @@ +{ inputs, config, ... }: +let + hm = config.flake.modules.homeManager; +in +{ + flake.modules.homeManager.i3 = + # let + # nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.11"; + # pkgs = import nixpkgs { config = {}; overlays = []; }; + # in + # { + # i3-commands = pkgs.callPackage ./i3-commands.nix { }; + # } + + + { + config, + pkgs, + ... + } : { + imports = [ + hm.polybar + hm.rofi + hm.kitty + hm.picom + ]; + xsession.enable = true; + xsession.windowManager.i3 = { + enable = true; + package = pkgs.i3; + }; + xdg.configFile."i3/config".enable = false; + home.file.".config/i3/config" = { + source = ./config; + onChange = "${pkgs.i3}/bin/i3-msg restart"; + }; + home.packages = with pkgs; [ + i3lock + xss-lock + networkmanagerapplet + flameshot + picom + nitrogen + pamixer + inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.i3-commands + inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.rofi-passmenu + ]; + }; +} -- cgit v1.3.1