From aa1500fea32db04c9e4fe72786ebd7e3479b6a8a Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Sat, 4 Jan 2025 15:14:05 +1300 Subject: feat: Commands restructure + home manager module now makes config Commands module is now a separate libraray that the flake includes. The home manager module will now auto generate the config and has options for different things such as keybinds, gaps, workspaces, etc. --- flake.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 3cea84d..da92073 100644 --- a/flake.nix +++ b/flake.nix @@ -2,23 +2,28 @@ description = "YATwm"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + libCommands = { + url = "github:BossCode45/commands"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, ... }@inputs: let pkgs = nixpkgs.legacyPackages.x86_64-linux; in { devShells.x86_64-linux.default = pkgs.mkShell { - buildInputs = with pkgs; [ - gcc - gnumake - xorg.libX11 - xorg.libXrandr - libnotify - pkg-config - clang-tools + nativeBuildInputs = [ + pkgs.gcc + pkgs.gnumake + pkgs.xorg.libX11 + pkgs.xorg.libXrandr + pkgs.libnotify + pkgs.pkg-config + pkgs.clang-tools + inputs.libCommands.packages.x86_64-linux.default ]; }; - packages.x86_64-linux.YATwm = (pkgs.callPackage ./YATwm.nix {}); + packages.x86_64-linux.YATwm = (pkgs.callPackage ./YATwm.nix {inherit inputs;}); packages.x86_64-linux.default = self.packages.x86_64-linux.YATwm; nixosModules.YATwm = import ./nix/module.nix; nixosModules.default = self.nixosModules.YATwm; -- cgit v1.2.3