Use stylix and refactor related things

This commit is contained in:
Pedro Rey Anca 2025-06-09 18:49:44 +02:00
parent f173a43c72
commit 96dc27ff50
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
19 changed files with 600 additions and 397 deletions

View file

@ -1,50 +1,69 @@
{ {
"nodes": { "nodes": {
"catppuccin-bat": { "base16": {
"flake": false, "inputs": {
"fromYaml": "fromYaml"
},
"locked": { "locked": {
"lastModified": 1734996624, "lastModified": 1746562888,
"narHash": "sha256-6fWoCH90IGumAMc4buLRWL0N61op+AuMNN9CAR9/OdI=", "narHash": "sha256-YgNJQyB5dQiwavdDFBMNKk1wyS77AtdgDk/VtU6wEaI=",
"owner": "catppuccin", "owner": "SenchoPens",
"repo": "bat", "repo": "base16.nix",
"rev": "699f60fc8ec434574ca7451b444b880430319941", "rev": "806a1777a5db2a1ef9d5d6f493ef2381047f2b89",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "catppuccin", "owner": "SenchoPens",
"repo": "bat", "repo": "base16.nix",
"type": "github" "type": "github"
} }
}, },
"catppuccin-cava": { "base16-fish": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1725405604, "lastModified": 1622559957,
"narHash": "sha256-5AQcCRGaAxP5KFzkJtkKFYq0Ug2xVIEqr2r/k87uWwY=", "narHash": "sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA=",
"owner": "catppuccin", "owner": "tomyun",
"repo": "cava", "repo": "base16-fish",
"rev": "0746f77974330338ee2e1e4d1ef9872eba57eb26", "rev": "2f6dd973a9075dabccd26f1cded09508180bf5fe",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "catppuccin", "owner": "tomyun",
"repo": "cava", "repo": "base16-fish",
"type": "github" "type": "github"
} }
}, },
"catppuccin-starship": { "base16-helix": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1733541952, "lastModified": 1736852337,
"narHash": "sha256-1w0TJdQP5lb9jCrCmhPlSexf0PkAlcz8GBDEsRjPRns=", "narHash": "sha256-esD42YdgLlEh7koBrSqcT7p2fsMctPAcGl/+2sYJa2o=",
"owner": "catppuccin", "owner": "tinted-theming",
"repo": "starship", "repo": "base16-helix",
"rev": "e99ba6b210c0739af2a18094024ca0bdf4bb3225", "rev": "03860521c40b0b9c04818f2218d9cc9efc21e7a5",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "catppuccin", "owner": "tinted-theming",
"repo": "starship", "repo": "base16-helix",
"type": "github"
}
},
"base16-vim": {
"flake": false,
"locked": {
"lastModified": 1732806396,
"narHash": "sha256-e0bpPySdJf0F68Ndanwm+KWHgQiZ0s7liLhvJSWDNsA=",
"owner": "tinted-theming",
"repo": "base16-vim",
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-vim",
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
"type": "github" "type": "github"
} }
}, },
@ -70,6 +89,22 @@
"type": "gitlab" "type": "gitlab"
} }
}, },
"firefox-gnome-theme": {
"flake": false,
"locked": {
"lastModified": 1744642301,
"narHash": "sha256-5A6LL7T0lttn1vrKsNOKUk9V0ittdW0VEqh6AtefxJ4=",
"owner": "rafaelmardojai",
"repo": "firefox-gnome-theme",
"rev": "59e3de00f01e5adb851d824cf7911bd90c31083a",
"type": "github"
},
"original": {
"owner": "rafaelmardojai",
"repo": "firefox-gnome-theme",
"type": "github"
}
},
"fjordlauncher": { "fjordlauncher": {
"inputs": { "inputs": {
"libnbtplusplus": "libnbtplusplus", "libnbtplusplus": "libnbtplusplus",
@ -91,6 +126,21 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat": {
"locked": {
"lastModified": 1733328505,
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
@ -112,6 +162,108 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"stylix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733312601,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"fromYaml": {
"flake": false,
"locked": {
"lastModified": 1731966426,
"narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
"owner": "SenchoPens",
"repo": "fromYaml",
"rev": "106af9e2f715e2d828df706c386a685698f3223b",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "fromYaml",
"type": "github"
}
},
"git-hooks": {
"inputs": {
"flake-compat": [
"stylix",
"flake-compat"
],
"gitignore": "gitignore",
"nixpkgs": [
"stylix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1742649964,
"narHash": "sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "dcf5072734cb576d2b0c59b2ac44f5050b5eac82",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "git-hooks.nix",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"stylix",
"git-hooks",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"gnome-shell": {
"flake": false,
"locked": {
"lastModified": 1744584021,
"narHash": "sha256-0RJ4mJzf+klKF4Fuoc8VN8dpQQtZnKksFmR2jhWE1Ew=",
"owner": "GNOME",
"repo": "gnome-shell",
"rev": "52c517c8f6c199a1d6f5118fae500ef69ea845ae",
"type": "github"
},
"original": {
"owner": "GNOME",
"ref": "48.1",
"repo": "gnome-shell",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -133,6 +285,28 @@
"type": "github" "type": "github"
} }
}, },
"home-manager_2": {
"inputs": {
"nixpkgs": [
"stylix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1747556831,
"narHash": "sha256-Qb84nbYFFk0DzFeqVoHltS2RodAYY5/HZQKE8WnBDsc=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d0bbd221482c2713cccb80220f3c9d16a6e20a33",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.05",
"repo": "home-manager",
"type": "github"
}
},
"hypr-contrib": { "hypr-contrib": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
@ -183,22 +357,6 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1749143949,
"narHash": "sha256-QuUtALJpVrPnPeozlUG/y+oIMSLdptHxb3GK6cpSVhA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d3d2d80a2191a73d1e86456a751b83aa13085d7d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1749086602, "lastModified": 1749086602,
@ -251,18 +409,175 @@
"type": "github" "type": "github"
} }
}, },
"nur_2": {
"inputs": {
"flake-parts": [
"stylix",
"flake-parts"
],
"nixpkgs": [
"stylix",
"nixpkgs"
],
"treefmt-nix": "treefmt-nix_2"
},
"locked": {
"lastModified": 1746056780,
"narHash": "sha256-/emueQGaoT4vu0QjU9LDOG5roxRSfdY0K2KkxuzazcM=",
"owner": "nix-community",
"repo": "NUR",
"rev": "d476cd0972dd6242d76374fcc277e6735715c167",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"catppuccin-bat": "catppuccin-bat",
"catppuccin-cava": "catppuccin-cava",
"catppuccin-starship": "catppuccin-starship",
"firefox-addons": "firefox-addons", "firefox-addons": "firefox-addons",
"fjordlauncher": "fjordlauncher", "fjordlauncher": "fjordlauncher",
"home-manager": "home-manager", "home-manager": "home-manager",
"hypr-contrib": "hypr-contrib", "hypr-contrib": "hypr-contrib",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable", "nur": "nur",
"nur": "nur" "stylix": "stylix"
}
},
"stylix": {
"inputs": {
"base16": "base16",
"base16-fish": "base16-fish",
"base16-helix": "base16-helix",
"base16-vim": "base16-vim",
"firefox-gnome-theme": "firefox-gnome-theme",
"flake-compat": "flake-compat",
"flake-parts": "flake-parts_2",
"git-hooks": "git-hooks",
"gnome-shell": "gnome-shell",
"home-manager": "home-manager_2",
"nixpkgs": [
"nixpkgs"
],
"nur": "nur_2",
"systems": "systems",
"tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
"tinted-tmux": "tinted-tmux",
"tinted-zed": "tinted-zed"
},
"locked": {
"lastModified": 1749389855,
"narHash": "sha256-//wZBnlBJ7Ki5/ZdafiAZwVFZd/2HhKqEbOupo/HcRA=",
"owner": "nix-community",
"repo": "stylix",
"rev": "bf5ab9df57a3d77847289c39c3a537bd6e6ac6f4",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.05",
"repo": "stylix",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tinted-foot": {
"flake": false,
"locked": {
"lastModified": 1726913040,
"narHash": "sha256-+eDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ=",
"owner": "tinted-theming",
"repo": "tinted-foot",
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "tinted-foot",
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
"type": "github"
}
},
"tinted-kitty": {
"flake": false,
"locked": {
"lastModified": 1735730497,
"narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=",
"owner": "tinted-theming",
"repo": "tinted-kitty",
"rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "tinted-kitty",
"type": "github"
}
},
"tinted-schemes": {
"flake": false,
"locked": {
"lastModified": 1744974599,
"narHash": "sha256-Fg+rdGs5FAgfkYNCs74lnl8vkQmiZVdBsziyPhVqrlY=",
"owner": "tinted-theming",
"repo": "schemes",
"rev": "28c26a621123ad4ebd5bbfb34ab39421c0144bdd",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "schemes",
"type": "github"
}
},
"tinted-tmux": {
"flake": false,
"locked": {
"lastModified": 1745111349,
"narHash": "sha256-udV+nHdpqgkJI9D0mtvvAzbqubt9jdifS/KhTTbJ45w=",
"owner": "tinted-theming",
"repo": "tinted-tmux",
"rev": "e009f18a01182b63559fb28f1c786eb027c3dee9",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "tinted-tmux",
"type": "github"
}
},
"tinted-zed": {
"flake": false,
"locked": {
"lastModified": 1725758778,
"narHash": "sha256-8P1b6mJWyYcu36WRlSVbuj575QWIFZALZMTg5ID/sM4=",
"owner": "tinted-theming",
"repo": "base16-zed",
"rev": "122c9e5c0e6f27211361a04fae92df97940eccf9",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-zed",
"type": "github"
} }
}, },
"treefmt-nix": { "treefmt-nix": {
@ -285,6 +600,28 @@
"repo": "treefmt-nix", "repo": "treefmt-nix",
"type": "github" "type": "github"
} }
},
"treefmt-nix_2": {
"inputs": {
"nixpkgs": [
"stylix",
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733222881,
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -3,7 +3,6 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
firefox-addons = { firefox-addons = {
@ -23,23 +22,14 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
catppuccin-bat = { stylix = {
url = "github:catppuccin/bat"; url = "github:nix-community/stylix/release-25.05";
flake = false; inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin-cava = {
url = "github:catppuccin/cava";
flake = false;
};
catppuccin-starship = {
url = "github:catppuccin/starship";
flake = false;
}; };
}; };
outputs = { outputs = {
nixpkgs, nixpkgs,
nixpkgs-unstable,
self, self,
... ...
} @ inputs: let } @ inputs: let
@ -49,10 +39,6 @@
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib; lib = nixpkgs.lib;
in { in {
nixosConfigurations = { nixosConfigurations = {
@ -61,7 +47,7 @@
modules = [(import ./hosts/frues-pc)]; modules = [(import ./hosts/frues-pc)];
specialArgs = { specialArgs = {
host = "frues-pc"; host = "frues-pc";
inherit self inputs username pkgs-unstable; inherit self inputs username;
}; };
}; };
frues-port = nixpkgs.lib.nixosSystem { frues-port = nixpkgs.lib.nixosSystem {
@ -69,7 +55,7 @@
modules = [(import ./hosts/frues-port)]; modules = [(import ./hosts/frues-port)];
specialArgs = { specialArgs = {
host = "frues-port"; host = "frues-port";
inherit self inputs username pkgs-unstable; inherit self inputs username;
}; };
}; };
frues-vm = nixpkgs.lib.nixosSystem { frues-vm = nixpkgs.lib.nixosSystem {
@ -77,7 +63,7 @@
modules = [(import ./hosts/frues-vm)]; modules = [(import ./hosts/frues-vm)];
specialArgs = { specialArgs = {
host = "frues-vm"; host = "frues-vm";
inherit self inputs username pkgs-unstable; inherit self inputs username;
}; };
}; };
fruesos-live = nixpkgs.lib.nixosSystem { fruesos-live = nixpkgs.lib.nixosSystem {
@ -88,7 +74,7 @@
]; ];
specialArgs = { specialArgs = {
host = "fruesos-live"; host = "fruesos-live";
inherit self inputs username pkgs-unstable; inherit self inputs username;
}; };
}; };
}; };

View file

@ -3,14 +3,14 @@
inputs, inputs,
username, username,
host, host,
pkgs-unstable,
... ...
}: { }: {
imports = [inputs.home-manager.nixosModules.home-manager]; imports = [inputs.home-manager.nixosModules.home-manager];
home-manager = { home-manager = {
backupFileExtension = "hmbkp";
useUserPackages = true; useUserPackages = true;
useGlobalPkgs = true; useGlobalPkgs = true;
extraSpecialArgs = {inherit inputs username host pkgs-unstable;}; extraSpecialArgs = {inherit inputs username host;};
users.${username} = { users.${username} = {
imports = [./../home]; imports = [./../home];
home.username = "${username}"; home.username = "${username}";

View file

@ -3,13 +3,6 @@
enable = true; enable = true;
config = { config = {
pager = "less -FR"; pager = "less -FR";
theme = "catppuccin-mocha";
};
themes = {
catppuccin-mocha = {
src = inputs.catppuccin-bat;
file = "/themes/Catppuccin Mocha.tmTheme";
};
}; };
}; };
} }

View file

@ -8,7 +8,7 @@
settings = { settings = {
"webgl.disabled" = false; "webgl.disabled" = false;
# "privacy.resistFingerprinting" = false; # "privacy.resistFingerprinting" = false;
"privacy.clearOnShutdown.history" = false; "privacy.clearOnShutdown.history" = true;
"privacy.clearOnShutdown.cookies" = false; "privacy.clearOnShutdown.cookies" = false;
"network.cookie.lifetimePolicy" = 0; "network.cookie.lifetimePolicy" = 0;
"identity.fxaccounts.enabled" = true; "identity.fxaccounts.enabled" = true;
@ -35,6 +35,7 @@
libredirect libredirect
multi-account-containers multi-account-containers
clearurls clearurls
tridactyl
hoppscotch hoppscotch
]; ];
}; };
@ -48,6 +49,7 @@
"services.sync.engine.passwords" = false; "services.sync.engine.passwords" = false;
"services.sync.engine.prefs" = false; "services.sync.engine.prefs" = false;
"services.sync.engine.tabs" = true; "services.sync.engine.tabs" = true;
"browser.urlbar.autoFill" = false;
# Layout # Layout
"browser.uiCustomization.state" = builtins.toJSON { "browser.uiCustomization.state" = builtins.toJSON {

View file

@ -3,11 +3,8 @@
enable = true; enable = true;
settings = { settings = {
color_theme = "dracula";
theme_background = false; theme_background = false;
update_ms = 500; update_ms = 500;
}; };
}; };
home.packages = with pkgs; [nvtopPackages.intel];
} }

View file

@ -7,10 +7,5 @@
enable = true; enable = true;
}; };
# https://github.com/catppuccin/cava stylix.targets.cava.rainbow.enable = true;
home.file.".config/cava/config".text =
''
# custom cava config
''
+ builtins.readFile "${inputs.catppuccin-cava}/themes/mocha.cava";
} }

View file

@ -9,7 +9,7 @@
++ [(import ./browsers)] # browser configurations ++ [(import ./browsers)] # browser configurations
++ [(import ./btop.nix)] # resouces monitor ++ [(import ./btop.nix)] # resouces monitor
++ [(import ./cava.nix)] # audio visualizer ++ [(import ./cava.nix)] # audio visualizer
++ [(import ./cliphist.nix)] # clipboard ++ [(import ./cliphist.nix)] # clipboard
++ [(import ./discord.nix)] # discord with catppuccin theme ++ [(import ./discord.nix)] # discord with catppuccin theme
++ [(import ./gpg.nix)] # GnuPG and its agent (gpg-agent) ++ [(import ./gpg.nix)] # GnuPG and its agent (gpg-agent)
++ [(import ./fuzzel.nix)] # launcher ++ [(import ./fuzzel.nix)] # launcher
@ -20,7 +20,7 @@
++ [(import ./kdeconnect.nix)] ++ [(import ./kdeconnect.nix)]
++ [(import ./kitty.nix)] # terminal ++ [(import ./kitty.nix)] # terminal
++ [(import ./swaync)] # notification deamon ++ [(import ./swaync)] # notification deamon
++ [(import ./nemo.nix)] # File manager ++ [(import ./nemo.nix)] # File manager
++ [(import ./nextcloud.nix)] # nextcloud client ++ [(import ./nextcloud.nix)] # nextcloud client
++ [(import ./nvim.nix)] # neovim editor ++ [(import ./nvim.nix)] # neovim editor
++ [(import ./packages.nix)] # other packages ++ [(import ./packages.nix)] # other packages
@ -30,6 +30,7 @@
++ [(import ./starship.nix)] # shell prompt ++ [(import ./starship.nix)] # shell prompt
++ [(import ./libreoffice.nix)] ++ [(import ./libreoffice.nix)]
++ [(import ./qt.nix)] ++ [(import ./qt.nix)]
++ [(import ./stylix.nix)] # shell
++ [(import ./vscodium.nix)] # vscode forck ++ [(import ./vscodium.nix)] # vscode forck
++ [(import ./waybar)] # status bar ++ [(import ./waybar)] # status bar
++ [(import ./zsh.nix)]; # shell ++ [(import ./zsh.nix)]; # shell

View file

@ -1,14 +1,13 @@
{...}: { {lib, ...}: {
programs.fuzzel = { programs.fuzzel = {
enable = true; enable = true;
settings = { settings = {
main = { main = {
font = "JetBrainsMono Nerd Font:weight=bold:size=14"; use-bold = true;
line-height = 25; line-height = 25;
fields = "name,generic,comment,categories,filename,keywords"; fields = "name,generic,comment,categories,filename,keywords";
terminal = "kitty"; terminal = "kitty";
prompt = "'🔍 '"; prompt = "'🔍 '";
icon-theme = "Papirus-Dark";
layer = "top"; layer = "top";
lines = 10; lines = 10;
width = 35; width = 35;
@ -16,15 +15,6 @@
inner-pad = 5; inner-pad = 5;
dpi-aware = false; dpi-aware = false;
}; };
colors = {
background = "1e1e2ecc";
text = "cdd6f4ff";
match = "f38ba8ff";
selection = "b4befeaa";
selection-match = "f38ba8ff";
selection-text = "cdd6f4ff";
border = "b4befeff";
};
border = { border = {
radius = 15; radius = 15;
width = 3; width = 3;

View file

@ -15,31 +15,5 @@
gtk = { gtk = {
enable = true; enable = true;
font = {
name = "JetBrainsMono Nerd Font";
size = 11;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "lavender";
};
};
theme = {
name = "Dracula";
package = pkgs.dracula-theme;
};
cursorTheme = {
name = "mochaDark";
package = pkgs.catppuccin-cursors;
size = 22;
};
};
home.pointerCursor = {
name = "Nordzy-cursors";
package = pkgs.nordzy-cursor-theme;
size = 22;
}; };
} }

View file

@ -32,9 +32,9 @@
gaps_in = 0; gaps_in = 0;
gaps_out = 0; gaps_out = 0;
border_size = 2; border_size = 2;
"col.active_border" = "rgb(cba6f7) rgb(94e2d5) 45deg"; # "col.active_border" = "rgb(cba6f7) rgb(94e2d5) 45deg";
"col.inactive_border" = "0x00000000"; # "col.inactive_border" = "0x00000000";
border_part_of_window = false; # border_part_of_window = false;
no_border_on_floating = false; no_border_on_floating = false;
}; };
@ -89,7 +89,7 @@
offset = "0 2"; offset = "0 2";
range = 20; range = 20;
render_power = 3; render_power = 3;
color = "rgba(00000055)"; # color = "rgba(00000055)";
}; };
}; };
@ -234,36 +234,25 @@
# windowrule # windowrule
windowrule = [ windowrule = [
"float,imv" "float,class:vimiv"
"center,imv" "center,class:vimiv"
"size 1200 725,imv" "float,class:mpv"
"float,mpv" "center,class:mpv"
"center,mpv" "size 1200 725,class:mpv"
"tile,Aseprite"
"size 1200 725,mpv"
"float,title:^(float_kitty)$" "float,title:^(float_kitty)$"
"center,title:^(float_kitty)$" "center,title:^(float_kitty)$"
"size 950 600,title:^(float_kitty)$" "size 950 600,title:^(float_kitty)$"
# "pin,wofi" "tile, class:neovide"
# "float,wofi" "idleinhibit focus,class:mpv"
# "noborder,wofi" "float,class:udiskie"
"tile, neovide"
"idleinhibit focus,mpv"
"float,udiskie"
"float,title:^(Volume Control)$" "float,title:^(Volume Control)$"
"float,title:^(Firefox Sharing Indicator)$" "float,title:^(Firefox Sharing Indicator)$"
"move 0 0,title:^(Firefox Sharing Indicator)$" "move 0 0,title:^(Firefox Sharing Indicator)$"
"size 700 450,title:^(Volume Control)$" "size 700 450,title:^(Volume Control)$"
"move 40 55%,title:^(Volume Control)$" "move 40 55%,title:^(Volume Control)$"
];
# windowrulev2
windowrulev2 = [
"float, title:^(Picture-in-Picture)$" "float, title:^(Picture-in-Picture)$"
"opacity 1.0 override 1.0 override, title:^(Picture-in-Picture)$" "opacity 1.0 override 1.0 override, title:^(Picture-in-Picture)$"
"pin, title:^(Picture-in-Picture)$" "pin, title:^(Picture-in-Picture)$"
"opacity 1.0 override 1.0 override, title:^(.*imv.*)$"
"opacity 1.0 override 1.0 override, title:^(.*mpv.*)$"
"opacity 1.0 override 1.0 override, class:(Aseprite)" "opacity 1.0 override 1.0 override, class:(Aseprite)"
"opacity 1.0 override 1.0 override, class:(Unity)" "opacity 1.0 override 1.0 override, class:(Unity)"
"idleinhibit focus, class:^(mpv)$" "idleinhibit focus, class:^(mpv)$"

View file

@ -1,97 +1,73 @@
{pkgs, ...}: { {config, ...}: {
programs.hyprlock.enable = true; programs.hyprlock = {
xdg.configFile."hypr/hyprlock.conf".text = '' enable = true;
$red = rgb(f38ba8) settings = let
$yellow = rgb(f9e2af) colors = with config.lib.stylix.colors; {
$lavender = rgb(b4befe) text = base05;
accent = base0E;
warning = base0A;
};
in {
general = {
hide_cursor = true;
};
$mauve = rgb(cba6f7) background = {
$mauveAlpha = cba6f7 path = "~/.config/hypr/wallpaper.png";
blur_passes = 2;
};
$base = rgb(1e1e2e) label = [
$surface0 = rgb(313244) # Time
$text = rgb(cdd6f4) {
$textAlpha = cdd6f4 text = "cmd[update:30000] echo \"<b><big> $(date +\"%R\") </big></b>\"";
color = "rgb(${colors.text})";
font_size = 110;
shadow_passes = 3;
shadow_size = 3;
$accent = $lavender position = "0, -100";
$accentAlpha = $mauveAlpha halign = "center";
$font = JetBrainsMono Nerd Font valign = "top";
}
# GENERAL # Date
general { {
disable_loading_bar = true text = "cmd[update:43200000] echo \"$(date +\"%A, %d %B %Y\")\"";
hide_cursor = true color = "rgb(${colors.text})";
} font_size = 18;
position = "0, -300";
halign = "center";
valign = "top";
}
];
# BACKGROUND # User Avatar
background { image = {
monitor = path = "~/.face.png";
path = ~/.config/hypr/wallpaper.png size = 125;
color = $base border_color = "rgb(${colors.accent})";
blur_passes = 2
}
# TIME position = "0, -450";
label { halign = "center";
monitor = valign = "center";
text = cmd[update:30000] echo "<b><big> $(date +"%R") </big></b>" };
color = $text
font_size = 110
font_family = $font
shadow_passes = 3
shadow_size = 3
position = 0, -100 input-field = {
halign = center size = "300, 60";
valign = top outline_thickness = 4;
} dots_size = 0.2;
dots_spacing = 0.4;
# DATE dots_center = true;
label { fade_on_empty = false;
monitor = placeholder_text = "<span foreground=\"##${colors.text}\"><i>󰌾 Logged in as </i><span foreground=\"##${colors.accent}\">$USER</span></span>";
text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")" hide_input = false;
color = $text fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
font_size = 18 capslock_color = "rgb(${colors.warning})";
font_family = $font position = "0, -100";
position = 0, -300 halign = "center";
halign = center valign = "center";
valign = top };
} };
};
# USER AVATAR
image {
monitor =
path = ~/.face.png
size = 125
border_color = $accent
position = 0, -450
halign = center
valign = center
}
# INPUT FIELD
input-field {
monitor =
size = 300, 60
outline_thickness = 4
dots_size = 0.2
dots_spacing = 0.4
dots_center = true
outer_color = $accent
inner_color = $surface0
font_color = $text
fade_on_empty = false
placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
hide_input = false
check_color = $accent
fail_color = $red
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
capslock_color = $yellow
position = 0, -100
halign = center
valign = center
}
'';
} }

View file

@ -4,16 +4,8 @@
shellIntegration.enableZshIntegration = true; shellIntegration.enableZshIntegration = true;
themeFile = "Catppuccin-Mocha";
font = {
name = "JetBrainsMono Nerd Font";
size = 13;
};
settings = { settings = {
confirm_os_window_close = 0; confirm_os_window_close = 0;
background_opacity = "0.55";
window_padding_width = 10; window_padding_width = 10;
scrollback_lines = 10000; scrollback_lines = 10000;
enable_audio_bell = false; enable_audio_bell = false;

View file

@ -4,34 +4,4 @@
... ...
}: { }: {
qt.enable = true; qt.enable = true;
qt.platformTheme.name = "qtct";
qt.style.name = "kvantum";
home.packages = with pkgs; [
libsForQt5.qtstyleplugin-kvantum
libsForQt5.qt5.qtwayland
qt6.qtwayland
];
xdg.configFile."Kvantum/kvantum.kvconfig".source = (pkgs.formats.ini {}).generate "kvantum.kvconfig" {
General.theme = "catppuccin-mocha-lavender";
};
xdg.configFile."Kvantum/catppuccin-mocha-lavender".source = "${(pkgs.catppuccin-kvantum.override {
variant = "mocha";
accent = "lavender";
})}/share/Kvantum/catppuccin-mocha-lavender";
xdg.configFile."qt5ct/qt5ct.conf".source = (pkgs.formats.ini {}).generate "kvantum.kvconfig" {
Appearance = {
style = "kvantum-dark";
icon_theme = "Papirus-Dark";
};
Fonts = {
general = "\"JetBrainsMono Nerd Font,12,-1,5,50,0,0,0,0,0,Regular\"";
fixed = "\"JetBrainsMono Nerd Font,12,-1,5,50,0,0,0,0,0,Regular\"";
};
};
xdg.configFile."qt6ct/qt6ct.conf".source = config.xdg.configFile."qt5ct/qt5ct.conf".source;
} }

View file

@ -1,8 +1,4 @@
{ {lib, ...}: {
lib,
inputs,
...
}: {
programs.starship = { programs.starship = {
enable = true; enable = true;
@ -10,37 +6,33 @@
enableZshIntegration = true; enableZshIntegration = true;
enableNushellIntegration = true; enableNushellIntegration = true;
settings = settings = {
{ # right_format = "$cmd_duration";
# right_format = "$cmd_duration";
directory = { directory = {
format = "[ ](bold #89b4fa)[ $path ]($style)"; format = "[ ](bold #89b4fa)[ $path ]($style)";
style = "bold #b4befe"; style = "bold #b4befe";
}; };
character = { character = {
success_symbol = "[ ](bold #89b4fa)[ ](bold green)"; success_symbol = "[ ](bold #89b4fa)[ ](bold green)";
error_symbol = "[ ](bold #89b4fa)[ ](bold red)"; error_symbol = "[ ](bold #89b4fa)[ ](bold red)";
# error_symbol = "[ ](bold #89dceb)[ ✗](bold red)"; # error_symbol = "[ ](bold #89dceb)[ ✗](bold red)";
}; };
cmd_duration = { cmd_duration = {
format = "[]($style)[[󰔚 ](bg:#161821 fg:#d4c097 bold)$duration](bg:#161821 fg:#BBC3DF)[ ]($style)"; format = "[]($style)[[󰔚 ](bg:#161821 fg:#d4c097 bold)$duration](bg:#161821 fg:#BBC3DF)[ ]($style)";
disabled = false; disabled = false;
style = "bg:none fg:#161821"; style = "bg:none fg:#161821";
}; };
# directory.substitutions = { # directory.substitutions = {
# "~" = "󰋞"; # "~" = "󰋞";
# "Documents" = " "; # "Documents" = " ";
# "Downloads" = " "; # "Downloads" = " ";
# "Music" = " "; # "Music" = " ";
# "Pictures" = " "; # "Pictures" = " ";
# }; # };
};
palette = "catppuccin_mocha";
}
// builtins.fromTOML (builtins.readFile "${inputs.catppuccin-starship}/themes/mocha.toml");
}; };
} }

56
modules/home/stylix.nix Normal file
View file

@ -0,0 +1,56 @@
{
inputs,
config,
pkgs,
...
}: {
imports = [inputs.stylix.homeModules.stylix];
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
targets = {
librewolf.profileNames = ["pedro"];
};
fonts = {
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
monospace = {
package = pkgs.nerd-fonts.jetbrains-mono;
name = "JetBrainsMono Nerd Font";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
cursor = {
package = pkgs.catppuccin-cursors.mochaDark;
name = "Catppuccin Mocha Dark";
size = 22;
};
iconTheme = {
enable = true;
package = pkgs.catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "lavender";
};
light = "Papirus-Light";
dark = "Papirus-Dark";
};
opacity = {
applications = 0.65;
desktop = 1.0;
popups = 0.8;
terminal = 0.55;
};
polarity = "dark";
};
}

View file

@ -22,10 +22,6 @@
ms-vscode.cmake-tools ms-vscode.cmake-tools
# TOML # TOML
tamasfe.even-better-toml tamasfe.even-better-toml
# Color theme
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
]; ];
userSettings = { userSettings = {
@ -34,12 +30,6 @@
"window.titleBarStyle" = "custom"; # needed otherwise vscode crashes, see https://github.com/NixOS/nixpkgs/issues/246509 "window.titleBarStyle" = "custom"; # needed otherwise vscode crashes, see https://github.com/NixOS/nixpkgs/issues/246509
"window.menuBarVisibility" = "toggle"; "window.menuBarVisibility" = "toggle";
"editor.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont', 'monospace', monospace";
"terminal.integrated.fontFamily" = "'JetBrainsMono Nerd Font', 'SymbolsNerdFont'";
"editor.fontSize" = 16;
"workbench.colorTheme" = "Catppuccin Mocha";
"workbench.iconTheme" = "catppuccin-mocha";
"catppuccin.accentColor" = "lavender";
"vsicons.dontShowNewVersionMessage" = true; "vsicons.dontShowNewVersionMessage" = true;
"explorer.confirmDragAndDrop" = true; "explorer.confirmDragAndDrop" = true;
"editor.fontLigatures" = true; "editor.fontLigatures" = true;

View file

@ -1,17 +1,4 @@
{ {host, ...}: {
custom ? {
font = "JetBrainsMono Nerd Font";
fontsize = "12";
primary_accent = "cba6f7";
secondary_accent = "89b4fa";
tertiary_accent = "f5f5f5";
background = "11111B";
opacity = ".85";
cursor = "Numix-Cursor";
},
host,
...
}: {
programs.waybar.settings.mainBar = { programs.waybar.settings.mainBar = {
position = "top"; position = "top";
layer = "top"; layer = "top";

View file

@ -1,100 +1,94 @@
{ {
custom ? { lib,
font = "JetBrainsMono Nerd Font"; config,
fontsize = "12";
primary_accent = "cba6f7";
secondary_accent = "89b4fa";
tertiary_accent = "cdd6f4";
background = "11111B";
opacity = ".98";
cursor = "Numix-Cursor";
},
... ...
}: { }: {
stylix.targets.waybar.addCss = false;
programs.waybar.style = '' programs.waybar.style = ''
* { * {
border: none; border: none;
border-radius: 0px; border-radius: 0;
font-family: ${custom.font};
font-weight: bold;
font-size: 15px;
min-height: 0; min-height: 0;
opacity: ${custom.opacity};
} }
window#waybar { window#waybar {
background: none; background: none;
} }
.module {
background: @base00;
color: @base05;
margin: 5px 0px;
min-height: 0;
font-weight: bold;
}
tooltip {
background: @base02;
color: @base05;
border-radius: 4px;
}
tooltip label {
color: @base05;
}
#workspaces { #workspaces {
background: #${custom.palette.tertiary_background_hex};
margin: 5px 5px; margin: 5px 5px;
padding: 8px 12px; padding: 8px 12px;
border-radius: 12px 12px 24px 24px; border-radius: 12px 12px 24px 24px;
color: #${custom.primary_accent}
} }
#workspaces button { #workspaces button {
padding: 0px 5px; padding: 0px 5px;
margin: 0px 3px; margin: 0px 3px;
border-radius: 15px; border-radius: 15px;
color: #${custom.background}; color: @base00;
background: #${custom.secondary_accent}; background-color: @base0D;
min-width: 15px;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
} }
#workspaces button.visible {
background-color: @base0F;
}
#workspaces button.active { #workspaces button.active {
background-color: #${custom.primary_accent}; background-color: @base0E;
color: #${custom.background};
border-radius: 15px;
min-width: 35px; min-width: 35px;
background-size: 200% 200%;
transition: all 0.2s ease-in-out;
} }
#workspaces button:hover { #workspaces button:hover {
background-color: #b4befe; background-color: @base07;
color: #${custom.background};
border-radius: 15px;
min-width: 35px; min-width: 35px;
background-size: 200% 200%;
}
#tray, #pulseaudio, #network, #cpu, #memory, #disk,
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward, #battery, #idle_inhibitor, #custom-notification {
background: #${custom.palette.tertiary_background_hex};
font-weight: bold;
margin: 5px 0px;
} }
#cpu { #cpu {
color: #${custom.tertiary_accent};
border-radius: 10px 0px 0px 24px; border-radius: 10px 0px 0px 24px;
padding-left: 15px; padding-left: 15px;
padding-right: 9px; padding-right: 9px;
margin-left: 7px; margin-left: 7px;
} }
#memory { #memory {
color: #${custom.tertiary_accent};
border-radius: 0; border-radius: 0;
padding-left: 9px; padding-left: 9px;
padding-right: 9px; padding-right: 9px;
} }
#disk { #disk {
color: #${custom.tertiary_accent};
border-radius: 0px 24px 10px 0px; border-radius: 0px 24px 10px 0px;
padding-left: 9px; padding-left: 9px;
padding-right: 15px; padding-right: 15px;
} }
#tray { #tray {
color: #${custom.tertiary_accent};
border-radius: 10px 24px 10px 24px; border-radius: 10px 24px 10px 24px;
padding: 0 20px; padding: 0 20px;
margin-left: 7px; margin-left: 7px;
} }
#pulseaudio { #pulseaudio {
color: #${custom.tertiary_accent};
border-radius: 10px 0px 0px 24px; border-radius: 10px 0px 0px 24px;
padding-left: 15px; padding-left: 15px;
padding-right: 9px; padding-right: 9px;
@ -102,46 +96,39 @@
} }
#battery { #battery {
color: #${custom.tertiary_accent};
border-radius: 0; border-radius: 0;
padding-left: 9px; padding-left: 9px;
padding-right: 9px; padding-right: 9px;
} }
#idle_inhibitor { #idle_inhibitor {
color: #${custom.tertiary_accent};
border-radius: 0; border-radius: 0;
padding-left: 9px; padding-left: 9px;
padding-right: 9px; padding-right: 9px;
} }
#network { #network {
color: #${custom.tertiary_accent};
border-radius: 0; border-radius: 0;
padding-left: 9px; padding-left: 9px;
padding-right: 9px; padding-right: 9px;
} }
#custom-notification { #custom-notification {
color: #${custom.tertiary_accent};
border-radius: 0px 24px 10px 0px; border-radius: 0px 24px 10px 0px;
padding-left: 9px; padding-left: 9px;
padding-right: 15px; padding-right: 15px;
} }
#clock { #clock {
color: #${custom.tertiary_accent};
background: #${custom.palette.tertiary_background_hex};
border-radius: 0px 0px 0px 40px; border-radius: 0px 0px 0px 40px;
padding: 10px 10px 15px 25px; padding: 10px 10px 15px 25px;
margin: 0px;
margin-left: 7px; margin-left: 7px;
font-weight: bold;
font-size: 16px; font-size: 16px;
} }
#custom-launcher { #custom-launcher {
color: #${custom.secondary_accent}; color: @base0D;
background: #${custom.palette.tertiary_background_hex};
border-radius: 0px 0px 40px 0px; border-radius: 0px 0px 40px 0px;
margin: 0px; margin: 0px;
padding: 0px 30px 0px 10px; padding: 0px 30px 0px 10px;
@ -149,37 +136,26 @@
} }
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward { #custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward {
background: #${custom.palette.tertiary_background_hex};
font-size: 22px; font-size: 22px;
} }
#custom-playerctl.backward:hover, #custom-playerctl.play:hover, #custom-playerctl.forward:hover{ #custom-playerctl.backward:hover, #custom-playerctl.play:hover, #custom-playerctl.forward:hover{
color: #${custom.tertiary_accent}; color: @base05;
} }
#custom-playerctl.backward { #custom-playerctl.backward {
color: #${custom.primary_accent}; color: @base0E;
border-radius: 24px 0px 0px 10px; border-radius: 24px 0px 0px 10px;
padding-left: 16px; padding-left: 16px;
margin-left: 7px; margin-left: 7px;
} }
#custom-playerctl.play { #custom-playerctl.play {
color: #${custom.secondary_accent}; color: @base0D;
padding: 0 5px; padding: 0 5px;
} }
#custom-playerctl.forward { #custom-playerctl.forward {
color: #${custom.primary_accent}; color: @base0E;
border-radius: 0px 10px 24px 0px; border-radius: 0px 10px 24px 0px;
padding-right: 12px; padding-right: 12px;
margin-right: 7px margin-right: 7px
} }
#window{
background: #${custom.palette.tertiary_background_hex};
padding-left: 15px;
padding-right: 15px;
border-radius: 16px;
margin-top: 5px;
margin-bottom: 5px;
font-weight: normal;
font-style: normal;
}
''; '';
} }