Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
536f0d8672 |
@ -53,7 +53,6 @@
|
|||||||
packages =
|
packages =
|
||||||
forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
|
forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
|
||||||
overlays = import ./overlays {inherit inputs;};
|
overlays = import ./overlays {inherit inputs;};
|
||||||
homeManagerModules = import ./modules/home-manager;
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
m3-kratos-vm = nixpkgs.lib.nixosSystem {
|
m3-kratos-vm = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = builtins.attrValues outputs.homeManagerModules;
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
# You can add overlays here
|
# You can add overlays here
|
||||||
overlays = [
|
overlays = [
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
wofi
|
wofi
|
||||||
|
zellij-ps
|
||||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||||
# # "Hello, world!" when run.
|
# # "Hello, world!" when run.
|
||||||
# pkgs.hello
|
# pkgs.hello
|
||||||
@ -80,27 +81,4 @@
|
|||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
programs.zellij-ps = {
|
|
||||||
enable = true;
|
|
||||||
projectFolders = [
|
|
||||||
"${config.home.homeDirectory}/.config"
|
|
||||||
"${config.home.homeDirectory}"
|
|
||||||
];
|
|
||||||
layout = ''
|
|
||||||
layout {
|
|
||||||
pane size=1 borderless=true {
|
|
||||||
plugin location="zellij:tab-bar"
|
|
||||||
}
|
|
||||||
pane size="70%" command="nvim"
|
|
||||||
pane split_direction="vertical" {
|
|
||||||
pane
|
|
||||||
pane command="unimatrix"
|
|
||||||
}
|
|
||||||
pane size=1 borderless=true {
|
|
||||||
plugin location="zellij:status-bar"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
zellij-ps = import ./zellij-ps.nix;
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib; let
|
|
||||||
cfg = config.programs.zellij-ps;
|
|
||||||
in {
|
|
||||||
options = {
|
|
||||||
programs.zellij-ps = {
|
|
||||||
enable = mkEnableOption "Zellij Project Selector";
|
|
||||||
projectFolders = lib.mkOption {
|
|
||||||
type = lib.types.listOf lib.types.path;
|
|
||||||
description = "List of project folders for zellij-ps.";
|
|
||||||
default = ["${config.home.homeDirectory}/projects"];
|
|
||||||
};
|
|
||||||
layout = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
description = "Layout for zellij";
|
|
||||||
default = ''
|
|
||||||
layout {
|
|
||||||
pane size=1 borderless=true {
|
|
||||||
plugin location="zellij:tab-bar"
|
|
||||||
}
|
|
||||||
pane
|
|
||||||
pane split_direction="vertical" {
|
|
||||||
pane
|
|
||||||
pane command="htop"
|
|
||||||
}
|
|
||||||
pane size=2 borderless=true {
|
|
||||||
plugin location="zellij:status-bar"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
home.packages = [pkgs.zellij-ps];
|
|
||||||
home.sessionVariables.PROJECT_FOLDERS = lib.concatStringsSep ":" cfg.projectFolders;
|
|
||||||
home.file.".config/zellij/layouts/zellij-ps.kdl".text = cfg.layout;
|
|
||||||
};
|
|
||||||
}
|
|
Reference in New Issue
Block a user