add hm module

This commit is contained in:
2026-03-06 19:29:17 -06:00
parent 93c1b00adc
commit b506d77dec
7 changed files with 149 additions and 83 deletions

33
nix/homeManagerModule.nix Normal file
View File

@@ -0,0 +1,33 @@
{ self', inputs, ... }: {
imports = [
inputs.home-manager.flakeModules.home-manager
];
flake.homeModules.default = { config, lib, pkgs, ... }: {
options.programs.aurora = with lib; {
enable = mkEnableOption "aurora";
package = mkPackageOption self'.packages "aurora" {
default = [ "aurora" ];
example = "aurora.packages.hybar";
};
};
config = lib.mkIf config.programs.aurora.enable {
programs.quickshell = {
enable = true;
package = config.programs.aurora.package;
systemd = {
enable = true;
target = "wayland-session@Hyprland.target";
};
};
};
};
}

19
nix/shells.nix Normal file
View File

@@ -0,0 +1,19 @@
{ ... }: {
perSystem = { pkgs, system, ... }: {
devShells.default = pkgs.mkShellNoCC {
nativeBuildInputs = with pkgs; [
quickshell
];
shellHook = ''
export SHELL=$(realpath `which zsh`)
exec nvim
'';
};
};
}

7
nix/systems.nix Normal file
View File

@@ -0,0 +1,7 @@
{ ... }: {
systems = [
"x86_64-linux"
"aarch64-linux"
];
}