Improve modularity

This commit is contained in:
Isshi0417 2024-07-11 14:03:15 +09:00
parent 3e587c83e3
commit b0098b8112
34 changed files with 122 additions and 211 deletions

View File

@ -38,7 +38,7 @@
inputs.catppuccin.nixosModules.catppuccin
# Stylix
# inputs.stylix.nixosModules.stylix
inputs.stylix.nixosModules.stylix
#Aagl
inputs.aagl.nixosModules.default

View File

@ -17,15 +17,13 @@
../../modules/gaming
# Gnome customization
../../modules/nixos/gnome.nix
../../modules/gnome
# Catppuccin
../../modules/ricing/catppuccin
# Home-manager
inputs.home-manager.nixosModules.default
# Stylix colors
#../../modules/nixos/stylix/ghibli.nix
#../../modules/nixos/stylix/kuromi.nix
#../../modules/nixos/stylix/dracula.nix
];
# Bootloader.
@ -174,11 +172,6 @@
lm_sensors
];
catppuccin = {
enable = true;
flavor = "mocha";
};
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [

View File

@ -3,11 +3,7 @@
{
imports =
[
../../modules/home-manager/git.nix
../../modules/home-manager/shell/zsh.nix
../../modules/home-manager/vscode.nix
#../../modules/home-manager/themes/basic-gtk.nix
../../modules/home-manager/catppuccin-mocha.nix
../../modules/home-manager
];
# Allow Unfree

View File

@ -1,51 +0,0 @@
{ inputs, ... }:
{
imports = [
inputs.catppuccin.homeManagerModules.catppuccin
];
catppuccin = {
enable = true;
flavor = "mocha";
pointerCursor.enable = true;
};
gtk = {
enable = true;
catppuccin = {
enable = true;
flavor = "mocha";
gnomeShellTheme = true;
icon = {
enable = true;
flavor = "mocha";
};
};
};
programs.kitty.catppuccin.enable = true;
programs.kitty.catppuccin.flavor = "mocha";
programs.neovim.catppuccin.enable = true;
programs.neovim.catppuccin.flavor = "mocha";
programs.rofi.catppuccin.enable = true;
programs.rofi.catppuccin.flavor = "mocha";
programs.starship.catppuccin.enable = true;
programs.starship.catppuccin.flavor = "mocha";
programs.waybar.catppuccin.enable = true;
programs.waybar.catppuccin.flavor = "mocha";
programs.zsh.syntaxHighlighting.catppuccin.enable = true;
programs.zsh.syntaxHighlighting.catppuccin.flavor = "mocha";
qt.style.catppuccin.enable = true;
qt.style.catppuccin.accent = "mocha";
qt.style.catppuccin.apply = true;
}

View File

@ -0,0 +1,10 @@
{ ... }:
{
imports = [
./git
./ricing/catppuccin
./shell
./vscode
];
}

View File

@ -0,0 +1,59 @@
{ inputs, ... }:
{
imports = [
inputs.catppuccin.homeManagerModules.catppuccin
];
catppuccin = {
enable = true;
accent = "rosewater";
flavor = "latte";
pointerCursor.enable = true;
};
gtk = {
enable = true;
catppuccin = {
enable = true;
accent = "rosewater";
flavor = "latte";
gnomeShellTheme = true;
icon = {
enable = true;
accent = "rosewater";
flavor = "latte";
};
};
};
programs.kitty.catppuccin = {
enable = true;
flavor = "latte";
};
programs.neovim.catppuccin = {
enable = true;
flavor = "latte";
};
programs.starship.catppuccin = {
enable = true;
flavor = "latte";
};
programs.zsh.syntaxHighlighting.catppuccin = {
enable = true;
flavor = "latte";
};
qt.style.catppuccin = {
enable = true;
accent = "rosewater";
apply = true;
flavor = "latte";
};
}

View File

@ -1,10 +1,6 @@
{ pkgs, ... }:
{
imports = [
#./themes/dracula.nix
];
# Download zsh packages
home.packages = with pkgs; [
zsh

View File

@ -1,24 +0,0 @@
{ pkgs, ... }:
{
programs.starship = {
enable = true;
enableZshIntegration = true;
settings = {
aws.style = "bold #FF9580";
cmd_duration.style = "bold #FFFF80";
directory.style = "bold #FFCA80";
hostname.style = "bold #9580FF";
git_branch.style = "bold #80FFEA";
git_status.style = "bold #FF80BF";
username = {
format = "[$user]($style) on ";
style_user = "bold #8AFF80";
};
character = {
success_symbol = "[λ](bold #F8F8F2)";
error_symbol = "[λ](bold #FF9580)";
};
};
};
}

View File

@ -1,11 +0,0 @@
{ pkgs, lib, ... }:
{
gtk.enable = true;
gtk.theme.package = lib.mkDefault pkgs.adw-gtk3;
gtk.theme.name = lib.mkDefault "adw-gtk3-dark";
gtk.iconTheme.package = pkgs.tela-circle-icon-theme;
gtk.iconTheme.name = "Tela-circle-dark";
}

View File

@ -1,25 +0,0 @@
{ lib, ... }:
{
imports = [
./nh.nix
];
swapDevices = [{
device = "/var/lib/swapfile";
size = 20*1024;
}];
hardware = {
enableRedistributableFirmware = lib.mkDefault true;
};
services = {
fwupd = {
enable = lib.mkDefault true;
};
thermald = {
enable = lib.mkDefault true;
};
};
}

View File

@ -1,9 +0,0 @@
{ config, pkgs, ... }:
{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
};
}

View File

@ -1,40 +0,0 @@
{ pkgs, ... }:
{
stylix.enable = true;
stylix.image = ./wallpapers/dracula-pro.png;
stylix.cursor.package = pkgs.bibata-cursors;
stylix.cursor.name = "Bibata-Modern-Ice";
stylix.fonts = {
monospace = {
package = pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; };
name = "JetBrainsMono Nerd Font";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
serif = {
package = pkgs.dejavu_fonts;
name = "Dejavu Serif";
};
};
stylix.fonts.sizes = {
applications = 12;
terminal = 15;
desktop = 10;
popups = 10;
};
stylix.opacity = {
applications = 1.0;
terminal = 1.0;
desktop = 1.0;
popups = 1.0;
};
stylix.polarity = "dark";
}

View File

@ -1,26 +0,0 @@
{ pkgs, ... }:
{
stylix.enable = true;
stylix.image = ./wallpapers/ghibli-3.png;
stylix.cursor.package = pkgs.bibata-cursors;
stylix.cursor.name = "Bibata-Modern-Ice";
stylix.fonts = {
monospace = {
package = pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; };
name = "JetBrainsMono Nerd Font";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
serif = {
package = pkgs.dejavu_fonts;
name = "Dejavu Serif";
};
};
stylix.polarity = "dark";
}

View File

@ -0,0 +1,10 @@
{ ... }:
{
# global
catppuccin = {
enable = true;
accent = "rosewater";
flavor = "latte";
};
}

View File

@ -1,11 +1,11 @@
{ pkgs, ... }:
{
stylix.homeManagerIntegration.followSystem = true;
imports = [
./themes
];
stylix.enable = true;
stylix.autoEnable = true;
stylix.image = ./wallpapers/kuromi.jpg;
stylix.homeManagerIntegration.followSystem = true;
stylix.cursor.package = pkgs.bibata-cursors;
stylix.cursor.name = "Bibata-Modern-Ice";

View File

@ -0,0 +1,9 @@
{ ... }:
{
imports = [
#./dracula.nix
#./ghibli.nix
./kuromi.nix
];
}

View File

@ -0,0 +1,5 @@
{ lib, pkgs, ... }:
{
stylix.image = ./wallpapers/dracula-pro.png;
}

View File

@ -0,0 +1,5 @@
{ pkgs, ... }:
{
stylix.image = ./wallpapers/ghibli-3.png;
}

View File

@ -0,0 +1,14 @@
{ lib, config, ... }:
let
cfg = config.kuromi;
in {
options = {
kuromi.enable = lib.mkEnableOption "Enable Module";
};
config = lib.mkIf cfg.enable {
stylix.enable = true;
stylix.image = ../../wallpapers/kuromi.jpg;
};
}

View File

Before

Width:  |  Height:  |  Size: 9.8 MiB

After

Width:  |  Height:  |  Size: 9.8 MiB

View File

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

View File

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 12 MiB

View File

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

View File

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

View File

Before

Width:  |  Height:  |  Size: 13 MiB

After

Width:  |  Height:  |  Size: 13 MiB

View File

Before

Width:  |  Height:  |  Size: 10 MiB

After

Width:  |  Height:  |  Size: 10 MiB

View File

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 12 MiB

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

Before

Width:  |  Height:  |  Size: 9.7 MiB

After

Width:  |  Height:  |  Size: 9.7 MiB

View File

Before

Width:  |  Height:  |  Size: 13 MiB

After

Width:  |  Height:  |  Size: 13 MiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB