beginning of big refactoring

This commit is contained in:
Vali 2024-07-20 13:18:01 +02:00
commit e09e7277eb
68 changed files with 358 additions and 2818 deletions

View file

@ -5,23 +5,17 @@
pkgs,
...
}: let
cfg = config.modules.programs.foot;
cfg = config.modules.system.programs.terminals.foot;
inherit (config.modules.other.system) username;
inherit (lib) mkEnableOption mkIf;
inherit (lib) mkIf;
in {
options.modules.programs.foot = {
enable = mkEnableOption "foot";
server = mkEnableOption "foot server mode";
};
config = mkIf cfg.enable {
environment.sessionVariables = {TERM = "foot";};
home-manager.users.${username} = {
programs.foot = {
enable = true;
package = inputs.nixpkgs-wayland.packages.${pkgs.system}.foot;
server.enable = cfg.server;
settings = {
main = {
term = "foot";

View file

@ -1,26 +1,21 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.programs.kitty;
username = config.modules.other.system.username;
cfg = config.modules.system.programs.terminals.kitty;
inherit (config.modules.other.system) username;
in {
options.modules.programs.kitty.enable = mkEnableOption "kitty";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.kitty = {
enable = true;
settings = {
# font_size = "13.0";
mouse_hide_wait = -1;
allow_remote_control = true;
url_style = "curly";
open_url_with = "default";
#background_opacity = "0.9";
confirm_os_window_close = "0";
};
};

View file

@ -4,13 +4,11 @@
lib,
...
}: let
cfg = config.modules.programs.schizofox;
cfg = config.modules.system.programs.firefox;
inherit (config.modules.other.system) username;
inherit (lib) mkEnableOption mkIf;
inherit (lib) mkIf;
in {
options.modules.programs.schizofox = {enable = mkEnableOption "schizofox";};
config = mkIf cfg.enable {
home-manager.users.${username} = {
imports = [inputs.schizofox.homeManagerModule];

View file

@ -5,12 +5,11 @@
inputs,
...
}: let
cfg = config.modules.programs.spicetify;
username = config.modules.other.system.username;
cfg = config.modules.system.programs.spotify;
inherit (config.modules.other.system) username;
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
# inherit (inputs.spicetify-nix.packages.${pkgs.system}) spicetify-nix;
in {
options.modules.programs.spicetify.enable = lib.mkEnableOption "spicetify";
config = lib.mkIf cfg.enable {
home-manager.users.${username} = {
imports = [inputs.spicetify-nix.homeManagerModule];

View file

@ -5,11 +5,9 @@
...
}:
with lib; let
cfg = config.modules.programs.vesktop;
username = config.modules.other.system.username;
cfg = config.modules.system.programs.discord;
inherit (config.modules.other.system) username;
in {
options.modules.programs.vesktop = {enable = mkEnableOption "vesktop";};
config = mkIf cfg.enable {
home-manager.users.${username} = {
home.packages = with pkgs; [vesktop];

View file

@ -5,7 +5,7 @@
...
}:
with lib; let
cfg = config.modules.programs.zathura;
cfg = config.modules.system.programs.zathura;
inherit (config.modules.other.system) username;
catppuccin = pkgs.fetchFromGitHub {
owner = "catppuccin";
@ -14,8 +14,6 @@ with lib; let
hash = "sha256-/vD/hOi6KcaGyAp6Az7jL5/tQSGRzIrf0oHjAJf4QbI=";
};
in {
options.modules.programs.zathura.enable = mkEnableOption "zathura";
config = mkIf cfg.enable {
home-manager.users.${username} = {
xdg.configFile."zathura/catppuccin-mocha".source = "${catppuccin}/src/catppuccin-mocha";