feat: a bit more modularization of home.nix
This commit is contained in:
16
modules/home-manager/dotfiles.nix
Normal file
16
modules/home-manager/dotfiles.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
myHome.dotfiles.enable = lib.mkEnableOption "enables dotfiles";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.myHome.dotfiles.enable {
|
||||
home.file = {
|
||||
".config/hypr/hyprland.conf".source = ../../dotfiles/hyprland.conf;
|
||||
};
|
||||
};
|
||||
}
|
||||
21
modules/home-manager/shell.nix
Normal file
21
modules/home-manager/shell.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
myHome.shell.enable = lib.mkEnableOption "enables shell stuff";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.myHome.shell.enable {
|
||||
home.packages = [
|
||||
pkgs.aoc-cli
|
||||
pkgs.neofetch
|
||||
pkgs.typst
|
||||
];
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user