mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 09:53:55 -05:00
move all overlays/overrides to config.nixpkgs.overlays.
This commit is contained in:
parent
badf800960
commit
fc216bc6b7
7
aly.nix
7
aly.nix
|
@ -17,7 +17,7 @@ in {
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(pkgs.google-chrome.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";})
|
google-chrome
|
||||||
browsh
|
browsh
|
||||||
curl
|
curl
|
||||||
fractal
|
fractal
|
||||||
|
@ -30,8 +30,7 @@ in {
|
||||||
ruby
|
ruby
|
||||||
tauon
|
tauon
|
||||||
trayscale
|
trayscale
|
||||||
unstable.obsidian
|
obsidian
|
||||||
unstable.zoom-us
|
|
||||||
webcord
|
webcord
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
@ -109,7 +108,7 @@ in {
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
chromium = {
|
chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
|
package = pkgs.brave;
|
||||||
};
|
};
|
||||||
emacs.enable = true;
|
emacs.enable = true;
|
||||||
eza.enable = true;
|
eza.enable = true;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
enable = lib.mkEnableOption "Chromium-based browser with default extensions.";
|
enable = lib.mkEnableOption "Chromium-based browser with default extensions.";
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
description = "Chromium-based browser (Brave by default).";
|
description = "Chromium-based browser (Brave by default).";
|
||||||
default = pkgs.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
|
default = pkgs.brave;
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
|
package = pkgs.vscodium;
|
||||||
enableUpdateCheck = false;
|
enableUpdateCheck = false;
|
||||||
enableExtensionUpdateCheck = false;
|
enableExtensionUpdateCheck = false;
|
||||||
userSettings = {
|
userSettings = {
|
||||||
|
|
|
@ -70,12 +70,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
wayland.windowManager.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
wayland.windowManager.hyprland.package = pkgs.hyprland;
|
||||||
wayland.windowManager.hyprland.extraConfig = let
|
wayland.windowManager.hyprland.extraConfig = let
|
||||||
modifier = "SUPER";
|
modifier = "SUPER";
|
||||||
|
|
||||||
# Hyprland desktop utilities
|
# Hyprland desktop utilities
|
||||||
hyprnome = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprnome;
|
hyprnome = lib.getExe pkgs.hyprnome;
|
||||||
hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
|
hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
|
||||||
|
|
||||||
# Default apps
|
# Default apps
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
wayland.windowManager.sway.package =
|
wayland.windowManager.sway.package =
|
||||||
if config.alyraffauf.desktop.sway.tabletMode.enable
|
if config.alyraffauf.desktop.sway.tabletMode.enable
|
||||||
then pkgs.sway
|
then pkgs.sway
|
||||||
else inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx;
|
else pkgs.swayfx;
|
||||||
wayland.windowManager.sway.wrapperFeatures.gtk = true;
|
wayland.windowManager.sway.wrapperFeatures.gtk = true;
|
||||||
wayland.windowManager.sway.checkConfig = false;
|
wayland.windowManager.sway.checkConfig = false;
|
||||||
|
|
||||||
|
@ -476,7 +476,7 @@
|
||||||
bindswitch --reload --locked lid:off output eDP-1 enable
|
bindswitch --reload --locked lid:off output eDP-1 enable
|
||||||
|
|
||||||
${
|
${
|
||||||
if config.wayland.windowManager.sway.package == inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx
|
if config.wayland.windowManager.sway.package == pkgs.swayfx
|
||||||
then "
|
then "
|
||||||
blur enable
|
blur enable
|
||||||
blur_passes 1
|
blur_passes 1
|
||||||
|
|
|
@ -16,12 +16,7 @@
|
||||||
};
|
};
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
description = "GTK theme package.";
|
description = "GTK theme package.";
|
||||||
default = pkgs.catppuccin-gtk.override {
|
default = pkgs.catppuccin-gtk;
|
||||||
accents = ["mauve"];
|
|
||||||
size = "compact";
|
|
||||||
variant = "frappe";
|
|
||||||
tweaks = ["normal"];
|
|
||||||
};
|
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
hideTitleBar = lib.mkOption {
|
hideTitleBar = lib.mkOption {
|
||||||
|
@ -38,10 +33,7 @@
|
||||||
};
|
};
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
description = "Qt Kvantum theme package.";
|
description = "Qt Kvantum theme package.";
|
||||||
default = pkgs.catppuccin-kvantum.override {
|
default = pkgs.catppuccin-kvantum;
|
||||||
accent = "Mauve";
|
|
||||||
variant = "Frappe";
|
|
||||||
};
|
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -53,10 +45,7 @@
|
||||||
};
|
};
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
description = "Icon theme package.";
|
description = "Icon theme package.";
|
||||||
default = pkgs.catppuccin-papirus-folders.override {
|
default = pkgs.catppuccin-papirus-folders;
|
||||||
flavor = "frappe";
|
|
||||||
accent = "mauve";
|
|
||||||
};
|
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -90,7 +79,7 @@
|
||||||
};
|
};
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
description = "Font package.";
|
description = "Font package.";
|
||||||
default = pkgs.nerdfonts.override {fonts = ["Noto"];};
|
default = pkgs.nerdfonts;
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -107,7 +96,7 @@
|
||||||
};
|
};
|
||||||
package = lib.mkOption {
|
package = lib.mkOption {
|
||||||
description = "Font package.";
|
description = "Font package.";
|
||||||
default = pkgs.nerdfonts.override {fonts = ["Noto"];};
|
default = pkgs.nerdfonts;
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,12 @@ inputs: {
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
unstable = import inputs.nixpkgsUnstable {
|
||||||
|
system = pkgs.system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./apps
|
./apps
|
||||||
./containers
|
./containers
|
||||||
|
@ -16,6 +21,47 @@ inputs: {
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
brave = prev.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
|
||||||
|
catppuccin-gtk = prev.catppuccin-gtk.override {
|
||||||
|
accents = ["mauve"];
|
||||||
|
size = "compact";
|
||||||
|
variant = "frappe";
|
||||||
|
tweaks = ["normal"];
|
||||||
|
};
|
||||||
|
catppuccin-kvantum = prev.catppuccin-kvantum.override {
|
||||||
|
accent = "Mauve";
|
||||||
|
variant = "Frappe";
|
||||||
|
};
|
||||||
|
catppuccin-papirus-folders = prev.catppuccin-papirus-folders.override {
|
||||||
|
flavor = "frappe";
|
||||||
|
accent = "mauve";
|
||||||
|
};
|
||||||
|
catppuccin-plymouth = prev.catppuccin-plymouth.override {variant = "frappe";};
|
||||||
|
nerdfonts = prev.nerdfonts.override {fonts = ["Noto"];};
|
||||||
|
google-chrome = prev.google-chrome.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
|
||||||
|
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||||
|
hyprnome = unstable.hyprnome;
|
||||||
|
obsidian = unstable.obsidian.overrideAttrs (old: {
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out/bin
|
||||||
|
makeWrapper ${pkgs.electron}/bin/electron $out/bin/obsidian \
|
||||||
|
--add-flags $out/share/obsidian/app.asar \
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-wayland-ime}}"
|
||||||
|
install -m 444 -D resources/app.asar $out/share/obsidian/app.asar
|
||||||
|
install -m 444 -D resources/obsidian.asar $out/share/obsidian/obsidian.asar
|
||||||
|
install -m 444 -D "${old.desktopItem}/share/applications/"* \
|
||||||
|
-t $out/share/applications/
|
||||||
|
for size in 16 24 32 48 64 128 256 512; do
|
||||||
|
mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
|
||||||
|
convert -background none -resize "$size"x"$size" ${old.icon} $out/share/icons/hicolor/"$size"x"$size"/apps/obsidian.png
|
||||||
|
done
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
sway = unstable.sway;
|
||||||
|
swayfx = unstable.swayfx;
|
||||||
|
vscodium = prev.vscodium.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
|
||||||
webcord = prev.webcord.overrideAttrs (old: {
|
webcord = prev.webcord.overrideAttrs (old: {
|
||||||
installPhase = let
|
installPhase = let
|
||||||
binPath = lib.makeBinPath [pkgs.xdg-utils];
|
binPath = lib.makeBinPath [pkgs.xdg-utils];
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
|
@ -16,7 +15,7 @@
|
||||||
programs = {
|
programs = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
package = pkgs.hyprland;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,29 +22,22 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = {
|
theme = {
|
||||||
name = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
name = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
||||||
package = pkgs.catppuccin-gtk.override {
|
package = pkgs.catppuccin-gtk;
|
||||||
accents = ["mauve"];
|
|
||||||
size = "compact";
|
|
||||||
variant = "frappe";
|
|
||||||
tweaks = ["normal"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Papirus-Dark";
|
name = "Papirus-Dark";
|
||||||
package = pkgs.catppuccin-papirus-folders.override {
|
package = pkgs.catppuccin-papirus-folders;
|
||||||
flavor = "frappe";
|
|
||||||
accent = "mauve";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
name = "NotoSans Nerd Font Regular";
|
name = "NotoSans Nerd Font Regular";
|
||||||
package = pkgs.nerdfonts.override {fonts = ["Noto"];};
|
package = pkgs.nerdfonts;
|
||||||
};
|
};
|
||||||
|
|
||||||
cursorTheme = {
|
cursorTheme = {
|
||||||
name = "Catppuccin-Frappe-Dark-Cursors";
|
name = "Catppuccin-Frappe-Dark-Cursors";
|
||||||
|
package = pkgs.catppuccin-cursors.frappeDark;
|
||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
programs = {
|
programs = {
|
||||||
sway = {
|
sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx;
|
package = pkgs.swayfx;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,11 +16,9 @@
|
||||||
initrd.verbose = false;
|
initrd.verbose = false;
|
||||||
plymouth = {
|
plymouth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
themePackages = [(pkgs.catppuccin-plymouth.override {variant = "frappe";})];
|
themePackages = [pkgs.catppuccin-plymouth];
|
||||||
theme = "catppuccin-frappe";
|
theme = "catppuccin-frappe";
|
||||||
font = "${pkgs.nerdfonts.override {
|
font = "${pkgs.nerdfonts}/share/fonts/truetype/NerdFonts/NotoSansNerdFont-Regular.ttf";
|
||||||
fonts = ["Noto"];
|
|
||||||
}}/share/fonts/truetype/NerdFonts/NotoSansNerdFont-Regular.ttf";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue