Include Hyprspace as a potential plugin
This commit is contained in:
parent
a138b332a3
commit
eb1cb1f297
6 changed files with 36 additions and 53 deletions
|
|
@ -41,7 +41,7 @@ in
|
||||||
''resume="PARTLABEL=SWAP"''
|
''resume="PARTLABEL=SWAP"''
|
||||||
''quiet''
|
''quiet''
|
||||||
''udev.log_level=3''
|
''udev.log_level=3''
|
||||||
] ++ config.conf.boot_params;
|
] ++ config.conf.bootParams;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
GOPATH = "$HOME/.go";
|
GOPATH = "$HOME/.go";
|
||||||
FLAKE = config.conf.nix_path;
|
FLAKE = config.conf.nixosConfigPath;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,9 @@
|
||||||
|
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
|
|
||||||
# Hyprspace = {
|
Hyprspace = {
|
||||||
# url = "github:KZDKM/Hyprspace";
|
url = "github:KZDKM/Hyprspace";
|
||||||
# inputs.hyprland.follows = "nixpkgs";
|
};
|
||||||
# };
|
|
||||||
|
|
||||||
nur.url = "github:nix-community/nur";
|
nur.url = "github:nix-community/nur";
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot_params = lib.mkOption {
|
bootParams = lib.mkOption {
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = [ "resume=something" ];
|
example = [ "resume=something" ];
|
||||||
type = with lib.types; listOf str;
|
type = with lib.types; listOf str;
|
||||||
|
|
@ -150,7 +150,7 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
nixos-config-path = lib.mkOption {
|
nixosConfigPath = lib.mkOption {
|
||||||
default = "/home/${config.conf.username}/gits/nixos/.";
|
default = "/home/${config.conf.username}/gits/nixos/.";
|
||||||
example = "yourpath/.";
|
example = "yourpath/.";
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
|
|
@ -159,41 +159,6 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
nvim-colorscheme = lib.mkOption {
|
|
||||||
default = {
|
|
||||||
tokyonight = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
example = {
|
|
||||||
catppuccin = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
type = lib.types.attrs;
|
|
||||||
description = ''
|
|
||||||
nixvim colorscheme.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
nix_path = lib.mkOption {
|
|
||||||
default = "/home/${config.conf.username}/gits/nixos";
|
|
||||||
example = "yourpath";
|
|
||||||
type = lib.types.str;
|
|
||||||
description = ''
|
|
||||||
The default path for your configuration.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
kb_layout = lib.mkOption {
|
|
||||||
default = "dashie";
|
|
||||||
example = "us";
|
|
||||||
type = lib.types.str;
|
|
||||||
description = ''
|
|
||||||
The layout used in services.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
systemStateVersion = lib.mkOption {
|
systemStateVersion = lib.mkOption {
|
||||||
example = "24.05";
|
example = "24.05";
|
||||||
default = "23.05";
|
default = "23.05";
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
# Utility functions for zoxide.
|
# Utility functions for zoxide.
|
||||||
#
|
#
|
||||||
|
|
||||||
export NIX_PATH="$NIX_PATH:${config.conf.nixos-config-path}"
|
export NIX_PATH="$NIX_PATH:${config.conf.nixosConfigPath}"
|
||||||
|
|
||||||
set EDITOR "neovide --no-fork"
|
set EDITOR "neovide --no-fork"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
options,
|
options,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -89,6 +90,23 @@ in
|
||||||
Plugins to be added to Hyprland.
|
Plugins to be added to Hyprland.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
pluginConfig = lib.mkOption {
|
||||||
|
default = { };
|
||||||
|
example = { };
|
||||||
|
type = with lib.types; attrsOf anything;
|
||||||
|
description = ''
|
||||||
|
Plugin configuration to be added to Hyprland.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
hyprspaceEnable = lib.mkOption {
|
||||||
|
default = false;
|
||||||
|
type = lib.types.bool;
|
||||||
|
example = true;
|
||||||
|
description = ''
|
||||||
|
Enables Hyprspace plugin for hyprland.
|
||||||
|
Please note, plugins tend to break VERY often.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -362,19 +380,20 @@ in
|
||||||
"oxinoti"
|
"oxinoti"
|
||||||
] ++ config.mods.hyprland.extraAutostart;
|
] ++ config.mods.hyprland.extraAutostart;
|
||||||
|
|
||||||
# plugin = {
|
plugin = {
|
||||||
# hyprspace = {
|
hyprspace = lib.mkIf config.mods.hyprland.hyprspaceEnable {
|
||||||
# bind = [
|
bind = [
|
||||||
# "SUPER, W, overview:toggle, toggle"
|
"SUPER, W, overview:toggle, toggle"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
# };
|
} // config.mods.hyprland.pluginConfig;
|
||||||
}
|
}
|
||||||
// config.mods.hyprland.customConfig
|
// config.mods.hyprland.customConfig
|
||||||
else
|
else
|
||||||
lib.mkForce config.mods.hyprland.customConfig;
|
lib.mkForce config.mods.hyprland.customConfig;
|
||||||
plugins = config.mods.hyprland.plugins;
|
plugins = [
|
||||||
#inputs.Hyprspace.packages.${pkgs.system}.Hyprspace
|
(lib.mkIf config.mods.hyprland.hyprspaceEnable inputs.Hyprspace.packages.${pkgs.system}.Hyprspace)
|
||||||
|
] ++ config.mods.hyprland.plugins;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue