refactor(home): homeModules -> ooknet
This commit is contained in:
parent
b81c929a0b
commit
1d1cb3092f
104 changed files with 214 additions and 255 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
./mimeApps
|
./mimeApps
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.config = {
|
options.ooknet.config = {
|
||||||
nix.enable = lib.mkEnableOption "enable nix configuration module";
|
nix.enable = lib.mkEnableOption "enable nix configuration module";
|
||||||
home.enable = lib.mkEnableOption "enable home configuration module";
|
home.enable = lib.mkEnableOption "enable home configuration module";
|
||||||
userDirs.enable = lib.mkEnableOption "enable userDirs configuration module";
|
userDirs.enable = lib.mkEnableOption "enable userDirs configuration module";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.config.home;
|
cfg = config.ooknet.config.home;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.config.mimeApps;
|
cfg = config.ooknet.config.mimeApps;
|
||||||
|
|
||||||
browser = ["${config.home.sessionVariables.BROWSER}.desktop"];
|
browser = ["${config.home.sessionVariables.BROWSER}.desktop"];
|
||||||
zathura = ["org.pwmt.zethura.desktop.desktop"];
|
zathura = ["org.pwmt.zethura.desktop.desktop"];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, outputs, ... }:
|
{ lib, config, pkgs, outputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.config.nix;
|
cfg = config.ooknet.config.nix;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.config.userDirs;
|
cfg = config.ooknet.config.userDirs;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
# ./nvim
|
# ./nvim
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.editor = {
|
options.ooknet.console.editor = {
|
||||||
helix = {
|
helix = {
|
||||||
enable = lib.mkEnableOption "Enable helix text editor";
|
enable = lib.mkEnableOption "Enable helix text editor";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ inputs, config, pkgs, lib, ... }:
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.editor.helix;
|
cfg = config.ooknet.console.editor.helix;
|
||||||
inherit (config) colorscheme;
|
inherit (config) colorscheme;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.editor.helix;
|
cfg = config.ooknet.console.editor.helix;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
cfg = config.homeModules.console.editor.nvim;
|
cfg = config.ooknet.console.editor.nvim;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.editor.nvim;
|
cfg = config.ooknet.console.editor.nvim;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
./lualine.nix
|
./lualine.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.editor.nvim.plugins = {
|
options.ooknet.console.editor.nvim.plugins = {
|
||||||
indentBlankline = lib.mkOption {
|
indentBlankline = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.editor.nvim.plugins;
|
cfg = config.ooknet.console.editor.nvim.plugins;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.editor.nvim.plugins;
|
cfg = config.ooknet.console.editor.nvim.plugins;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.editor.nvim.plugins;
|
cfg = config.ooknet.console.editor.nvim.plugins;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
cfg = config.homeModules.console.editor.nvim;
|
cfg = config.ooknet.console.editor.nvim;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
# ./ranger
|
# ./ranger
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.fileManager = {
|
options.ooknet.console.fileManager = {
|
||||||
lf = {
|
lf = {
|
||||||
enable = lib.mkEnableOption "Enable lf file manager";
|
enable = lib.mkEnableOption "Enable lf file manager";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
# - ripdrag support
|
# - ripdrag support
|
||||||
# - color parity with eza
|
# - color parity with eza
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.fileManager.lf;
|
cfg = config.ooknet.console.fileManager.lf;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./tmux
|
./tmux
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.multiplexer = {
|
options.ooknet.console.multiplexer = {
|
||||||
zellij = {
|
zellij = {
|
||||||
enable = lib.mkEnableOption "Enable zellij multiplexer";
|
enable = lib.mkEnableOption "Enable zellij multiplexer";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.multiplexer.tmux;
|
cfg = config.ooknet.console.multiplexer.tmux;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
cfg = config.homeModules.console.multiplexer.zellij;
|
cfg = config.ooknet.console.multiplexer.zellij;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,5 @@
|
||||||
{ lib, ... }:
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./starship
|
./starship.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.prompt = {
|
|
||||||
starship = {
|
|
||||||
enable = lib.mkEnableOption "Enable starship prompt";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
77
home/modules/console/prompt/starship.nix
Normal file
77
home/modules/console/prompt/starship.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.ooknet.console.prompt.starship;
|
||||||
|
inherit (lib) concatStrings mkEnableOption mkIf;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
options.ooknet.console.prompt.starship.enable = mkEnableOption "";
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
format = concatStrings [
|
||||||
|
"$username"
|
||||||
|
"$hostname"
|
||||||
|
"$nix_shell"
|
||||||
|
"$shlvl"
|
||||||
|
"$directory"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_commit"
|
||||||
|
"$git_state"
|
||||||
|
"$git_status"
|
||||||
|
"$jobs"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
|
||||||
|
directory = {
|
||||||
|
truncation_length = 0;
|
||||||
|
truncate_to_repo = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
fill = {
|
||||||
|
symbol = " ";
|
||||||
|
disabled = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
character = {
|
||||||
|
error_symbol = "[](bold red)";
|
||||||
|
success_symbol = "[](bold green)";
|
||||||
|
vimcmd_symbol = "[](bold yellow)";
|
||||||
|
vimcmd_visual_symbol = "[](bold cyan)";
|
||||||
|
vimcmd_replace_symbol = "[](bold purple)";
|
||||||
|
vimcmd_replace_one_symbol = "[](bold purple)";
|
||||||
|
};
|
||||||
|
|
||||||
|
aws.symbol = " ";
|
||||||
|
conda.symbol = " ";
|
||||||
|
dart.symbol = " ";
|
||||||
|
directory.read_only = " ";
|
||||||
|
docker_context.symbol = " ";
|
||||||
|
elixir.symbol = " ";
|
||||||
|
elm.symbol = " ";
|
||||||
|
gcloud.symbol = " ";
|
||||||
|
git_branch.symbol = " ";
|
||||||
|
golang.symbol = " ";
|
||||||
|
hg_branch.symbol = " ";
|
||||||
|
java.symbol = " ";
|
||||||
|
julia.symbol = " ";
|
||||||
|
memory_usage.symbol = " ";
|
||||||
|
nim.symbol = " ";
|
||||||
|
nodejs.symbol = " ";
|
||||||
|
package.symbol = " ";
|
||||||
|
perl.symbol = " ";
|
||||||
|
php.symbol = " ";
|
||||||
|
python.symbol = " ";
|
||||||
|
ruby.symbol = " ";
|
||||||
|
rust.symbol = " ";
|
||||||
|
scala.symbol = " ";
|
||||||
|
shlvl.symbol = "";
|
||||||
|
swift.symbol = " ";
|
||||||
|
terraform.symbol = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,110 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.homeModules.console.prompt.starship;
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
format =
|
|
||||||
let
|
|
||||||
git = "$git_branch$git_commit$git_state$git_status";
|
|
||||||
cloud = "$aws$gcloud$openstack";
|
|
||||||
in
|
|
||||||
''
|
|
||||||
($nix_shell)$directory(${git})(- ${cloud})$jobs$character
|
|
||||||
'';
|
|
||||||
|
|
||||||
fill = {
|
|
||||||
symbol = " ";
|
|
||||||
disabled = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Core
|
|
||||||
username = {
|
|
||||||
format = "[$user]($style)";
|
|
||||||
show_always = true;
|
|
||||||
};
|
|
||||||
hostname = {
|
|
||||||
format = "[@$hostname]($style) ";
|
|
||||||
ssh_only = false;
|
|
||||||
style = "bold green";
|
|
||||||
};
|
|
||||||
shlvl = {
|
|
||||||
format = "[$shlvl]($style) ";
|
|
||||||
style = "bold cyan";
|
|
||||||
threshold = 2;
|
|
||||||
repeat = true;
|
|
||||||
disabled = false;
|
|
||||||
};
|
|
||||||
cmd_duration = {
|
|
||||||
format = "took [$duration]($style) ";
|
|
||||||
};
|
|
||||||
|
|
||||||
directory = {
|
|
||||||
format = "[$path]($style)( [$read_only]($read_only_style)) ";
|
|
||||||
};
|
|
||||||
nix_shell = {
|
|
||||||
format = "[($name \\(develop\\) <- )$symbol]($style) ";
|
|
||||||
impure_msg = "";
|
|
||||||
symbol = " ";
|
|
||||||
style = "bold red";
|
|
||||||
};
|
|
||||||
|
|
||||||
character = {
|
|
||||||
error_symbol = "[](bold red)";
|
|
||||||
success_symbol = "[](bold green)";
|
|
||||||
vimcmd_symbol = "[](bold yellow)";
|
|
||||||
vimcmd_visual_symbol = "[](bold cyan)";
|
|
||||||
vimcmd_replace_symbol = "[](bold purple)";
|
|
||||||
vimcmd_replace_one_symbol = "[](bold purple)";
|
|
||||||
};
|
|
||||||
|
|
||||||
time = {
|
|
||||||
format = "\\\[[$time]($style)\\\]";
|
|
||||||
disabled = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Cloud
|
|
||||||
gcloud = {
|
|
||||||
format = "on [$symbol$active(/$project)(\\($region\\))]($style)";
|
|
||||||
};
|
|
||||||
aws = {
|
|
||||||
format = "on [$symbol$profile(\\($region\\))]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Icon changes only \/
|
|
||||||
aws.symbol = " ";
|
|
||||||
conda.symbol = " ";
|
|
||||||
dart.symbol = " ";
|
|
||||||
directory.read_only = " ";
|
|
||||||
docker_context.symbol = " ";
|
|
||||||
elixir.symbol = " ";
|
|
||||||
elm.symbol = " ";
|
|
||||||
gcloud.symbol = " ";
|
|
||||||
git_branch.symbol = " ";
|
|
||||||
golang.symbol = " ";
|
|
||||||
hg_branch.symbol = " ";
|
|
||||||
java.symbol = " ";
|
|
||||||
julia.symbol = " ";
|
|
||||||
memory_usage.symbol = " ";
|
|
||||||
nim.symbol = " ";
|
|
||||||
nodejs.symbol = " ";
|
|
||||||
package.symbol = " ";
|
|
||||||
perl.symbol = " ";
|
|
||||||
php.symbol = " ";
|
|
||||||
python.symbol = " ";
|
|
||||||
ruby.symbol = " ";
|
|
||||||
rust.symbol = " ";
|
|
||||||
scala.symbol = " ";
|
|
||||||
shlvl.symbol = "";
|
|
||||||
swift.symbol = " ";
|
|
||||||
terraform.symbol = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.shell.bash;
|
cfg = config.ooknet.console.shell.bash;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./zsh
|
./zsh
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.shell = {
|
options.ooknet.console.shell = {
|
||||||
fish = {
|
fish = {
|
||||||
enable = lib.mkEnableOption "Enable fish configuration";
|
enable = lib.mkEnableOption "Enable fish configuration";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.shell.fish;
|
cfg = config.ooknet.console.shell.fish;
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages;
|
hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages;
|
||||||
hasEza = hasPackage "eza";
|
hasEza = hasPackage "eza";
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.homeModules.console.shell.zsh;
|
cfg = config.ooknet.console.shell.zsh;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.console.shell.zsh.enable = mkEnableOption "";
|
options.ooknet.console.shell.zsh.enable = mkEnableOption "";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
./ssh
|
./ssh
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.console.utility = {
|
options.ooknet.console.utility = {
|
||||||
nixIndex = {
|
nixIndex = {
|
||||||
enable = lib.mkEnableOption "Enable nixIndex configuration";
|
enable = lib.mkEnableOption "Enable nixIndex configuration";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.utility.git;
|
cfg = config.ooknet.console.utility.git;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.utility.nixIndex;
|
cfg = config.ooknet.console.utility.nixIndex;
|
||||||
update-script = pkgs.writeShellApplication {
|
update-script = pkgs.writeShellApplication {
|
||||||
name = "fetch-nix-index-database";
|
name = "fetch-nix-index-database";
|
||||||
runtimeInputs = with pkgs; [ wget coreutils ];
|
runtimeInputs = with pkgs; [ wget coreutils ];
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.utility.ssh;
|
cfg = config.ooknet.console.utility.ssh;
|
||||||
hasFish = mkIf config.homeModules.console.shell.fish.enable;
|
hasFish = mkIf config.ooknet.console.shell.fish.enable;
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
@ -16,9 +16,8 @@ in
|
||||||
IdentityAgent "~/.1password/agent.sock"
|
IdentityAgent "~/.1password/agent.sock"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
programs.fish.interactiveShellInit = hasFish ''
|
programs.fish.interactiveShellInit = hasFish /* fish */ ''
|
||||||
set -gx SSH_AUTH_SOCK ~/.1password/agent.sock
|
set -gx SSH_AUTH_SOCK ~/.1password/agent.sock
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.console.utility.tools;
|
cfg = config.ooknet.console.utility.tools;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
@ -61,7 +61,7 @@ in
|
||||||
};
|
};
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = lib.mkIf config.homeModules.console.shell.fish.enable true;
|
enableFishIntegration = lib.mkIf config.ooknet.console.shell.fish.enable true;
|
||||||
defaultCommand = "rg --files --hidden";
|
defaultCommand = "rg --files --hidden";
|
||||||
changeDirWidgetOptions = [
|
changeDirWidgetOptions = [
|
||||||
"--preview 'eza --icons -L 3 -T --color always {} | head -200'"
|
"--preview 'eza --icons -L 3 -T --color always {} | head -200'"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#./brave -- still needs tio be implemented
|
#./brave -- still needs tio be implemented
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.browser = {
|
options.ooknet.desktop.browser = {
|
||||||
firefox = {
|
firefox = {
|
||||||
enable = lib.mkEnableOption "Enable firefox browser";
|
enable = lib.mkEnableOption "Enable firefox browser";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
addons = inputs.firefox-addons.packages.${pkgs.system};
|
addons = inputs.firefox-addons.packages.${pkgs.system};
|
||||||
cfg = config.homeModules.desktop.browser.firefox;
|
cfg = config.ooknet.desktop.browser.firefox;
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ inputs, config, lib, ... }:
|
{ inputs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.browser.schizofox;
|
cfg = config.ooknet.desktop.browser.schizofox;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.communication.discord;
|
cfg = config.ooknet.desktop.communication.discord;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.communication.discord.enable = mkEnableOption "Enable discord home manager module";
|
options.ooknet.desktop.communication.discord.enable = mkEnableOption "Enable discord home manager module";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.vesktop ];
|
home.packages = [ pkgs.vesktop ];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.creative.audio.audacity;
|
cfg = config.ooknet.desktop.creative.audio.audacity;
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.creative.audio.audacity.enable = mkEnableOption "Enable audacity home module";
|
options.ooknet.desktop.creative.audio.audacity.enable = mkEnableOption "Enable audacity home module";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.audacity ];
|
home.packages = [ pkgs.audacity ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.creative.audio.inkscape;
|
cfg = config.ooknet.desktop.creative.audio.inkscape;
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.creative.audio.inkscape.enable = mkEnableOption "Enable inkscape home module";
|
options.ooknet.desktop.creative.audio.inkscape.enable = mkEnableOption "Enable inkscape home module";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.inkscape-with-extensions ];
|
home.packages = [ pkgs.inkscape-with-extensions ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf;
|
||||||
cfg = config.homeModules.desktop.gaming.bottles;
|
cfg = config.ooknet.desktop.gaming.bottles;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.gaming.bottles.enable = mkEnableOption "Enable bottles home-manager modules";
|
options.ooknet.desktop.gaming.bottles.enable = mkEnableOption "Enable bottles home-manager modules";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
./bottles
|
./bottles
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.gaming = {
|
options.ooknet.desktop.gaming = {
|
||||||
factorio = {
|
factorio = {
|
||||||
enable = lib.mkEnableOption "Enable factorio home module";
|
enable = lib.mkEnableOption "Enable factorio home module";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg=config.homeModules.desktop.gaming.factorio;
|
cfg=config.ooknet.desktop.gaming.factorio;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.homeModules.desktop.gaming.lutris;
|
cfg = config.ooknet.desktop.gaming.lutris;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
|
options.ooknet.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
./imv
|
./imv
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.media.image = {
|
options.ooknet.desktop.media.image = {
|
||||||
imv = {
|
imv = {
|
||||||
enable = lib.mkEnableOption "Enable imv image viewer";
|
enable = lib.mkEnableOption "Enable imv image viewer";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.media.image.imv;
|
cfg = config.ooknet.desktop.media.image.imv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./tui
|
./tui
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.media.music = {
|
options.ooknet.desktop.media.music = {
|
||||||
tui = {
|
tui = {
|
||||||
enable = lib.mkEnableOption "Enable tui music";
|
enable = lib.mkEnableOption "Enable tui music";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{lib, config, ... }:
|
{lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.media.music.easyeffects;
|
cfg = config.ooknet.desktop.media.music.easyeffects;
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.media.music.easyeffects.enable = mkEnableOption "Enable easy effects home module";
|
options.ooknet.desktop.media.music.easyeffects.enable = mkEnableOption "Enable easy effects home module";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.easyeffects = {
|
services.easyeffects = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
cfg = config.homeModules.desktop.media.music.tui;
|
cfg = config.ooknet.desktop.media.music.tui;
|
||||||
zellij = config.homeModules.console.multiplexer.zellij;
|
zellij = config.ooknet.console.multiplexer.zellij;
|
||||||
spotify-cli = pkgs.spotify-player.override {
|
spotify-cli = pkgs.spotify-player.override {
|
||||||
withImage = false;
|
withImage = false;
|
||||||
withSixel = false;
|
withSixel = false;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./mpv
|
./mpv
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.media.video = {
|
options.ooknet.desktop.media.video = {
|
||||||
mpv = {
|
mpv = {
|
||||||
enable = lib.mkEnableOption "Enable mpv video player";
|
enable = lib.mkEnableOption "Enable mpv video player";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.media.video.jellyfin;
|
cfg = config.ooknet.desktop.media.video.jellyfin;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.media.video.mpv;
|
cfg = config.ooknet.desktop.media.video.mpv;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, pkgs, ...}:
|
{ lib, config, pkgs, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.media.video.youtube;
|
cfg = config.ooknet.desktop.media.video.youtube;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
./office
|
./office
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.productivity = {
|
options.ooknet.desktop.productivity = {
|
||||||
obsidian = {
|
obsidian = {
|
||||||
enable = lib.mkEnableOption "enable obsidian home module";
|
enable = lib.mkEnableOption "enable obsidian home module";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.productivity.obsidian;
|
cfg = config.ooknet.desktop.productivity.obsidian;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.homeModules.desktop.productivity.office;
|
cfg = config.ooknet.desktop.productivity.office;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.productivity.office.enable = mkEnableOption "enable office home module";
|
options.ooknet.desktop.productivity.office.enable = mkEnableOption "enable office home module";
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.libreoffice ];
|
home.packages = [ pkgs.libreoffice ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.productivity.zathura;
|
cfg = config.ooknet.desktop.productivity.zathura;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf types mkOption;
|
inherit (lib) mkIf types mkOption;
|
||||||
inherit (builtins) elem;
|
inherit (builtins) elem;
|
||||||
cfg = config.homeModules.desktop.security.polkit;
|
cfg = config.ooknet.desktop.security.polkit;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.desktop.security.polkit = mkOption {
|
options.ooknet.desktop.security.polkit = mkOption {
|
||||||
type = types.enum ["gnome" "pantheon"]; # TODO: add kde agent
|
type = types.enum ["gnome" "pantheon"]; # TODO: add kde agent
|
||||||
default = "";
|
default = "";
|
||||||
description = "Type of polkit agent module to use";
|
description = "Type of polkit agent module to use";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.terminal;
|
cfg = config.ooknet.desktop.terminal;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
./kitty
|
./kitty
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.terminal = {
|
options.ooknet.desktop.terminal = {
|
||||||
foot = {
|
foot = {
|
||||||
enable = lib.mkEnableOption "Enable foot terminal";
|
enable = lib.mkEnableOption "Enable foot terminal";
|
||||||
default = lib.mkOption {
|
default = lib.mkOption {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
cfg = config.homeModules.desktop.terminal.foot;
|
cfg = config.ooknet.desktop.terminal.foot;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
fonts = config.homeModules.theme.font;
|
fonts = config.ooknet.theme.font;
|
||||||
cfg = config.homeModules.desktop.terminal.kitty;
|
cfg = config.ooknet.desktop.terminal.kitty;
|
||||||
fish = config.homeModules.console.shell.fish;
|
fish = config.ooknet.console.shell.fish;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, inputs, ... }:
|
{ lib, config, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.bar.ags;
|
cfg = config.ooknet.desktop.wayland.bar.ags;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./waybar
|
./waybar
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.bar = {
|
options.ooknet.desktop.wayland.bar = {
|
||||||
eww = {
|
eww = {
|
||||||
enable = lib.mkEnableOption "Enable Eww bar";
|
enable = lib.mkEnableOption "Enable Eww bar";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
cfg = config.homeModules.desktop.wayland.bar.waybar;
|
cfg = config.ooknet.desktop.wayland.bar.waybar;
|
||||||
monitorWidth = (lib.head config.monitors).width - 20;
|
monitorWidth = (lib.head config.monitors).width - 20;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland;
|
cfg = config.ooknet.desktop.wayland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -13,7 +13,7 @@ in
|
||||||
./launcher
|
./launcher
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland = {
|
options.ooknet.desktop.wayland = {
|
||||||
enable = lib.mkEnableOption "Enable wayland specific confurations";
|
enable = lib.mkEnableOption "Enable wayland specific confurations";
|
||||||
nvidia = lib.mkOption {
|
nvidia = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, inputs, pkgs, ... }:
|
{ config, lib, inputs, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.launcher.anyrun;
|
cfg = config.ooknet.desktop.wayland.launcher.anyrun;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
./tofi
|
./tofi
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.launcher = {
|
options.ooknet.desktop.wayland.launcher = {
|
||||||
anyrun = {
|
anyrun = {
|
||||||
enable = lib.mkEnableOption "enable anyrun launcher module";
|
enable = lib.mkEnableOption "enable anyrun launcher module";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
cfg = config.homeModules.desktop.wayland.launcher.rofi;
|
cfg = config.ooknet.desktop.wayland.launcher.rofi;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.launcher.tofi;
|
cfg = config.ooknet.desktop.wayland.launcher.tofi;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
./hyprlock
|
./hyprlock
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.lockscreen = {
|
options.ooknet.desktop.wayland.lockscreen = {
|
||||||
swaylock = {
|
swaylock = {
|
||||||
enable = lib.mkEnableOption "Enable Swaylock screen";
|
enable = lib.mkEnableOption "Enable Swaylock screen";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib, config, inputs, pkgs, ... }:
|
{ lib, config, inputs, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.lockscreen.hyprlock;
|
cfg = config.ooknet.desktop.wayland.lockscreen.hyprlock;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
wallpaperPath = config.homeModules.theme.wallpaper.path;
|
wallpaperPath = config.ooknet.theme.wallpaper.path;
|
||||||
cfg = config.homeModules.desktop.wayland.lockscreen.swaylock;
|
cfg = config.ooknet.desktop.wayland.lockscreen.swaylock;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#./dunst -- still needs to be implemented
|
#./dunst -- still needs to be implemented
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.notification = {
|
options.ooknet.desktop.wayland.notification = {
|
||||||
mako = {
|
mako = {
|
||||||
enable = lib.mkEnableOption "Enable mako notification daemon";
|
enable = lib.mkEnableOption "Enable mako notification daemon";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (config.colorscheme) palette variant;
|
inherit (config.colorscheme) palette variant;
|
||||||
fonts = config.homeModules.theme.fonts;
|
fonts = config.ooknet.theme.fonts;
|
||||||
cfg = config.homeModules.desktop.wayland.notification.mako;
|
cfg = config.ooknet.desktop.wayland.notification.mako;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.mako = {
|
services.mako = {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./tools
|
./tools
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.utility = {
|
options.ooknet.desktop.wayland.utility = {
|
||||||
tools = {
|
tools = {
|
||||||
enable = lib.mkEnableOption "Enable wayland specific tools";
|
enable = lib.mkEnableOption "Enable wayland specific tools";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.utility.gammastep;
|
cfg = config.ooknet.desktop.wayland.utility.gammastep;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.utility.tools;
|
cfg = config.ooknet.desktop.wayland.utility.tools;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
./hyprland
|
./hyprland
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.windowManager = {
|
options.ooknet.desktop.wayland.windowManager = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = lib.mkEnableOption "Enable Hyprland window-manager";
|
enable = lib.mkEnableOption "Enable Hyprland window-manager";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, pkgs, inputs, ... }:
|
{ lib, config, pkgs, inputs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
inherit (import ./pkgs {inherit pkgs;}) hyprbrightness hyprvolume;
|
inherit (import ./pkgs {inherit pkgs;}) hyprbrightness hyprvolume;
|
||||||
inherit (inputs.ooks-scripts.packages.${pkgs.system}) powermenu zellijmenu;
|
inherit (inputs.ooks-scripts.packages.${pkgs.system}) powermenu zellijmenu;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
./hyprshade
|
./hyprshade
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.windowManager.hyprland.extras = {
|
options.ooknet.desktop.wayland.windowManager.hyprland.extras = {
|
||||||
hyprcapture = {
|
hyprcapture = {
|
||||||
enable = lib.mkEnableOption "Enable hyprcapture screenshot/recording module";
|
enable = lib.mkEnableOption "Enable hyprcapture screenshot/recording module";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, inputs, ... }:
|
{ lib, config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland.extras.hyprcapture;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland.extras.hyprcapture;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland.extras.hyprshade;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland.extras.hyprshade;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
pointer = config.home.pointerCursor;
|
pointer = config.home.pointerCursor;
|
||||||
inherit (config.colorscheme) palette;
|
inherit (config.colorscheme) palette;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib, config, inputs, ... }:
|
{ lib, config, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
wallpaperPath = config.homeModules.theme.wallpaper.path;
|
wallpaperPath = config.ooknet.theme.wallpaper.path;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
|
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.theme.cursor;
|
cfg = config.ooknet.theme.cursor;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.homeModules.theme.cursor = {
|
options.ooknet.theme.cursor = {
|
||||||
enable = lib.mkEnableOption "Enable cursor module";
|
enable = lib.mkEnableOption "Enable cursor module";
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ let
|
||||||
example = "pkgs.fira-code";
|
example = "pkgs.fira-code";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cfg = config.homeModules.theme.fonts;
|
cfg = config.ooknet.theme.fonts;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeModules.theme.fonts = {
|
options.ooknet.theme.fonts = {
|
||||||
enable = lib.mkEnableOption "Whether to enable font profiles";
|
enable = lib.mkEnableOption "Whether to enable font profiles";
|
||||||
monospace = mkFontOption "monospace";
|
monospace = mkFontOption "monospace";
|
||||||
regular = mkFontOption "regular";
|
regular = mkFontOption "regular";
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
||||||
cfg = config.homeModules.theme.gtk;
|
cfg = config.ooknet.theme.gtk;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeModules.theme.gtk = {
|
options.ooknet.theme.gtk = {
|
||||||
enable = lib.mkEnableOption "Enable gtk theme module";
|
enable = lib.mkEnableOption "Enable gtk theme module";
|
||||||
# TODO: add theme option
|
# TODO: add theme option
|
||||||
};
|
};
|
||||||
|
|
@ -14,7 +14,7 @@ in
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
font = {
|
||||||
name = config.homeModules.theme.fonts.regular.family;
|
name = config.ooknet.theme.fonts.regular.family;
|
||||||
size = 12;
|
size = 12;
|
||||||
};
|
};
|
||||||
theme = {
|
theme = {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.homeModules.theme.qt;
|
cfg = config.ooknet.theme.qt;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeModules.theme.qt.enable = lib.mkEnableOption "Enable qt module";
|
options.ooknet.theme.qt.enable = lib.mkEnableOption "Enable qt module";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
qt = {
|
qt = {
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@ let
|
||||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) nixWallpaperFromScheme;
|
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) nixWallpaperFromScheme;
|
||||||
inherit (lib) types mkDefault mkIf mkOption mkEnableOption;
|
inherit (lib) types mkDefault mkIf mkOption mkEnableOption;
|
||||||
|
|
||||||
cfg = config.homeModules.theme.wallpaper;
|
cfg = config.ooknet.theme.wallpaper;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.homeModules.theme.wallpaper = {
|
options.ooknet.theme.wallpaper = {
|
||||||
enable = mkEnableOption "Enable wallpaper module";
|
enable = mkEnableOption "Enable wallpaper module";
|
||||||
path = mkOption {
|
path = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
|
|
@ -16,7 +16,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
homeModules.theme.wallpaper.path =
|
ooknet.theme.wallpaper.path =
|
||||||
let
|
let
|
||||||
largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs));
|
largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs));
|
||||||
largestWidth = largest (x: x.width) config.monitors;
|
largestWidth = largest (x: x.width) config.monitors;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ in
|
||||||
|
|
||||||
systemd.user.startServices = mkDefault "sd-switch";
|
systemd.user.startServices = mkDefault "sd-switch";
|
||||||
|
|
||||||
homeModules = {
|
ooknet = {
|
||||||
config = {
|
config = {
|
||||||
home.enable = true;
|
home.enable = true;
|
||||||
userDirs.enable = true;
|
userDirs.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
homeModules.desktop = {
|
ooknet.desktop = {
|
||||||
gaming = {
|
gaming = {
|
||||||
lutris.enable = false;
|
lutris.enable = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
homeModules.desktop = {
|
ooknet.desktop = {
|
||||||
|
|
||||||
wayland = {
|
wayland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
homeModules.desktop = {
|
ooknet.desktop = {
|
||||||
productivity = {
|
productivity = {
|
||||||
obsidian.enable = true;
|
obsidian.enable = true;
|
||||||
zathura.enable = true;
|
zathura.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ in
|
||||||
home.file.".colorscheme".text = config.colorscheme.slug;
|
home.file.".colorscheme".text = config.colorscheme.slug;
|
||||||
home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}";
|
home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}";
|
||||||
|
|
||||||
homeModules.theme = {
|
ooknet.theme = {
|
||||||
fonts.enable = true;
|
fonts.enable = true;
|
||||||
fonts.regular = {
|
fonts.regular = {
|
||||||
family = "Fira Sans";
|
family = "Fira Sans";
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue