moved and simplified overlays from baseModules

This commit is contained in:
Aly Raffauf 2024-07-07 23:54:00 -04:00
parent 97f265bd4d
commit 0a58af6500
14 changed files with 54 additions and 68 deletions

View file

@ -4,8 +4,6 @@ inputs: {
pkgs, pkgs,
... ...
}: { }: {
imports = [./nixpkgs.nix];
console.useXkbConfig = true; console.useXkbConfig = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View file

@ -1,43 +0,0 @@
{
config,
inputs,
lib,
pkgs,
...
}: {
nixpkgs = let
unstable = import inputs.nixpkgsUnstable {
system = pkgs.system;
config.allowUnfree = true; # Allow unfree packages
};
in {
config.allowUnfree = true; # Allow unfree packages
# Overlays over default packages.
overlays = [
inputs.nur.overlay
(final: prev: {
alyraffauf-wallpapers = inputs.wallpapers.packages.${pkgs.system}.default;
brave = prev.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
google-chrome = prev.google-chrome.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
nerdfonts = prev.nerdfonts.override {fonts = ["Noto"];};
obsidian = prev.obsidian.overrideAttrs (old: {
installPhase =
builtins.replaceStrings ["--ozone-platform=wayland"]
["--ozone-platform=wayland --enable-wayland-ime"]
old.installPhase;
});
vscodium = prev.vscodium.override {commandLineArgs = "--enable-wayland-ime";};
webcord = prev.webcord.overrideAttrs (old: {
installPhase =
builtins.replaceStrings ["--ozone-platform-hint=auto"]
["--ozone-platform-hint=auto --enable-wayland-ime"]
old.installPhase;
});
})
];
};
}

View file

@ -1,14 +1,15 @@
{ {
pkgs,
lib,
config, config,
inputs,
lib,
pkgs,
... ...
}: let }: let
sway-randomWallpaper = pkgs.writeShellScriptBin "sway-randomWallpaper" '' sway-randomWallpaper = pkgs.writeShellScriptBin "sway-randomWallpaper" ''
kill `pidof swaybg` kill `pidof swaybg`
OLD_PIDS=() OLD_PIDS=()
directory=${pkgs.alyraffauf-wallpapers}/share/backgrounds directory=${inputs.wallpapers.packages.${pkgs.system}.default}/share/backgrounds
if [ -d "$directory" ]; then if [ -d "$directory" ]; then
while true; do while true; do

View file

@ -1,5 +1,6 @@
{ {
config, config,
inputs,
lib, lib,
osConfig, osConfig,
pkgs, pkgs,
@ -283,7 +284,7 @@ in {
wallpaper = lib.mkOption { wallpaper = lib.mkOption {
description = "Default wallpaper."; description = "Default wallpaper.";
default = "${pkgs.alyraffauf-wallpapers}/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg"; default = "${inputs.wallpapers.packages.${pkgs.system}.defaults}/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
type = lib.types.str; type = lib.types.str;
}; };
}; };

View file

@ -54,7 +54,7 @@
font = { font = {
name = "NotoSans Nerd Font"; name = "NotoSans Nerd Font";
package = pkgs.nerdfonts; package = pkgs.nerdfonts.override {fonts = ["Noto"];};
size = lib.mkDefault 11; size = lib.mkDefault 11;
}; };

View file

@ -66,7 +66,7 @@ inputs: self: {
theme = { theme = {
enable = true; enable = true;
wallpaper = "${pkgs.alyraffauf-wallpapers}/share/backgrounds/wallhaven-3led2d.jpg"; wallpaper = "${inputs.wallpapers.packages.${pkgs.system}.default}/share/backgrounds/wallhaven-3led2d.jpg";
}; };
}; };
} }

View file

@ -20,7 +20,7 @@
profiles = { profiles = {
default = { default = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with config.nur.repos.rycee.firefox-addons; [
augmented-steam augmented-steam
decentraleyes decentraleyes
keepassxc-browser keepassxc-browser
@ -161,7 +161,7 @@
}; };
work = { work = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with config.nur.repos.rycee.firefox-addons; [
clearurls clearurls
consent-o-matic consent-o-matic
decentraleyes decentraleyes

View file

@ -41,7 +41,7 @@ inputs: self: {
theme = { theme = {
enable = true; enable = true;
wallpaper = "${pkgs.alyraffauf-wallpapers}/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg"; wallpaper = "${inputs.wallpapers.packages.${pkgs.system}.default}/share/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
}; };
}; };
} }

View file

@ -38,7 +38,7 @@ inputs: self: {
theme = { theme = {
enable = true; enable = true;
wallpaper = "${pkgs.alyraffauf-wallpapers}/share//backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg"; wallpaper = "${inputs.wallpapers.packages.${pkgs.system}.default}/share//backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
}; };
}; };
} }

View file

@ -1,5 +1,6 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
... ...
@ -58,6 +59,17 @@
nix.settings.trusted-users = ["aly"]; nix.settings.trusted-users = ["aly"];
nixpkgs = {
config.allowUnfree = true; # Allow unfree packages
overlays = [
(final: prev: {
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
})
];
};
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;

View file

@ -20,6 +20,29 @@
environment.variables.GDK_SCALE = "2"; environment.variables.GDK_SCALE = "2";
networking.hostName = "petalburg"; networking.hostName = "petalburg";
nixpkgs.overlays = [
(final: prev: {
brave = prev.brave.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
obsidian = prev.obsidian.overrideAttrs (old: {
installPhase =
builtins.replaceStrings ["--ozone-platform=wayland"]
["--ozone-platform=wayland --enable-wayland-ime"]
old.installPhase;
});
vscodium = prev.vscodium.override {commandLineArgs = "--enable-wayland-ime";};
webcord = prev.webcord.overrideAttrs (old: {
installPhase =
builtins.replaceStrings ["--ozone-platform-hint=auto"]
["--ozone-platform-hint=auto --enable-wayland-ime"]
old.installPhase;
});
})
];
system.stateVersion = "24.05"; system.stateVersion = "24.05";
ar = { ar = {

View file

@ -28,8 +28,8 @@
}; };
font = { font = {
name = "NotoSans Nerd Font Regular"; name = "NotoSans Nerd Font";
package = pkgs.nerdfonts; package = pkgs.nerdfonts.override {fonts = ["Noto"];};
}; };
iconTheme = { iconTheme = {

View file

@ -1,7 +1,8 @@
{ {
pkgs,
lib,
config, config,
inputs,
lib,
pkgs,
... ...
}: { }: {
imports = [ imports = [
@ -23,12 +24,10 @@
) { ) {
environment = { environment = {
sessionVariables.NIXOS_OZONE_WL = "1"; sessionVariables.NIXOS_OZONE_WL = "1";
systemPackages = [pkgs.alyraffauf-wallpapers];
}; };
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
liberation_ttf liberation_ttf
nerdfonts
]; ];
hardware.logitech.wireless = { hardware.logitech.wireless = {
@ -55,10 +54,12 @@
xserver = { xserver = {
enable = true; enable = true;
xkb = { xkb = {
layout = "us"; layout = "us";
variant = "altgr-intl"; variant = "altgr-intl";
}; };
excludePackages = with pkgs; [xterm]; excludePackages = with pkgs; [xterm];
}; };
}; };

View file

@ -19,13 +19,6 @@
]; ];
}; };
nixpkgs.overlays = [
(final: prev: {
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
})
];
programs = { programs = {
hyprland = { hyprland = {
enable = true; enable = true;