[zellij] Move to proper module
This commit is contained in:
parent
502f0f8bb0
commit
189b8278b7
6 changed files with 21 additions and 18 deletions
|
@ -13,6 +13,7 @@
|
|||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
zellij.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
./tea
|
||||
./vifm
|
||||
./vim
|
||||
./zellij
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
];
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./home-manager
|
||||
./zellij
|
||||
];
|
||||
}
|
||||
|
|
18
nixos/modules/programs/zellij/default.nix
Normal file
18
nixos/modules/programs/zellij/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue