add hm module
This commit is contained in:
33
nix/homeManagerModule.nix
Normal file
33
nix/homeManagerModule.nix
Normal 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
19
nix/shells.nix
Normal 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
7
nix/systems.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }: {
|
||||
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user