[zellij] Move to proper module

This commit is contained in:
Tibo De Peuter 2023-10-18 17:03:24 +02:00
parent 502f0f8bb0
commit 189b8278b7
6 changed files with 21 additions and 18 deletions

View file

@ -13,6 +13,7 @@
programs = {
home-manager.enable = true;
zellij.enable = true;
};
};

View file

@ -6,6 +6,5 @@
./tea
./vifm
./vim
./zellij
];
}

View file

@ -1,16 +0,0 @@
{ config, pkgs, lib, ... }:
{
home-manager.users.tdpeuter.home = {
packages = with pkgs; [
zellij
];
file.".config/zellij".source = ../../../../stow/zellij/.config/zellij;
};
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
];
}

View file

@ -1,5 +1,6 @@
{
imports = [
./home-manager
./zellij
];
}

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.programs.zellij;
in {
options.sisyphus.programs.zellij.enable = lib.mkEnableOption "Zellij";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
zellij
];
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
];
};
}

View file

@ -3,7 +3,7 @@
let
cfg = config.sisyphus.users.tdpeuter;
installedPkgs = config.home-manager.users.tdpeuter.home.packages;
installedPkgs = config.environment.systemPackages ++ config.home-manager.users.tdpeuter.home.packages;
in {
options.sisyphus.users.tdpeuter.enable = lib.mkEnableOption "user Tibo De Peuter";