mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-22 15:15:50 -06:00
move overlays to their own file
This commit is contained in:
parent
458c064bd0
commit
25750c2420
2 changed files with 60 additions and 50 deletions
|
@ -11,52 +11,9 @@
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# todo import from a different file
|
# todo import from a different file
|
||||||
nixpkgs.overlays = [
|
|
||||||
(self: super:
|
|
||||||
{
|
|
||||||
wavebox = super.wavebox.overrideAttrs
|
|
||||||
(old: {
|
|
||||||
version = "10.107.10";
|
|
||||||
src = super.fetchurl {
|
|
||||||
url = "https://download.wavebox.app/stable/linux/tar/Wavebox_10.107.10-2.tar.gz";
|
|
||||||
sha256 = "sha256-cbcAmnq9rJlQy6Y+06G647R72HWcK97KgSsYgusSB58=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
autoPatchelfHook
|
|
||||||
makeWrapper
|
|
||||||
qt5.wrapQtAppsHook
|
|
||||||
];
|
|
||||||
buildInputs = with pkgs.xorg; [
|
|
||||||
libXdmcp
|
|
||||||
libXScrnSaver
|
|
||||||
libXtst
|
|
||||||
libXdamage
|
|
||||||
] ++
|
|
||||||
(with pkgs; [
|
|
||||||
alsa-lib
|
|
||||||
gtk3
|
|
||||||
nss
|
|
||||||
mesa
|
|
||||||
]);
|
|
||||||
postFixup = ''
|
|
||||||
# make xdg-open overrideable at runtime
|
|
||||||
makeWrapper $out/opt/wavebox/wavebox $out/bin/wavebox \
|
|
||||||
--suffix PATH : ${super.xdg-utils}/bin
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
|
|
||||||
picom = super.picom.overrideAttrs (o: {
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
repo = "picom";
|
|
||||||
owner = "ibhagwan";
|
|
||||||
rev = "44b4970f70d6b23759a61a2b94d9bfb4351b41b1";
|
|
||||||
sha256 = "0iff4bwpc00xbjad0m000midslgx12aihs33mdvfckr75r114ylh";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = "nixos-vm"; # Define your hostname.
|
networking.hostName = "nixos-vm"; # Define your hostname.
|
||||||
|
|
||||||
|
@ -86,7 +43,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [
|
fonts.fonts = with pkgs; [
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
noto-fonts-extra
|
noto-fonts-extra
|
||||||
|
@ -102,6 +59,7 @@ fonts.fonts = with pkgs; [
|
||||||
zsh
|
zsh
|
||||||
|
|
||||||
wget
|
wget
|
||||||
|
less
|
||||||
gnumake
|
gnumake
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
|
@ -110,6 +68,8 @@ fonts.fonts = with pkgs; [
|
||||||
vim
|
vim
|
||||||
neovim
|
neovim
|
||||||
starship
|
starship
|
||||||
|
chezmoi
|
||||||
|
delta
|
||||||
gh
|
gh
|
||||||
|
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
|
@ -126,7 +86,7 @@ fonts.fonts = with pkgs; [
|
||||||
(python3.withPackages (p: with p;
|
(python3.withPackages (p: with p;
|
||||||
[ pynvim ]))
|
[ pynvim ]))
|
||||||
|
|
||||||
firefox
|
# firefox
|
||||||
wavebox
|
wavebox
|
||||||
|
|
||||||
|
|
||||||
|
|
50
overlays.nix
Normal file
50
overlays.nix
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(self: super:
|
||||||
|
{
|
||||||
|
wavebox = super.wavebox.overrideAttrs
|
||||||
|
(old: {
|
||||||
|
version = "10.107.10";
|
||||||
|
src = super.fetchurl {
|
||||||
|
url = "https://download.wavebox.app/stable/linux/tar/Wavebox_10.107.10-2.tar.gz";
|
||||||
|
sha256 = "sha256-cbcAmnq9rJlQy6Y+06G647R72HWcK97KgSsYgusSB58=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
autoPatchelfHook
|
||||||
|
makeWrapper
|
||||||
|
qt5.wrapQtAppsHook
|
||||||
|
];
|
||||||
|
buildInputs = with pkgs.xorg; [
|
||||||
|
libXdmcp
|
||||||
|
libXScrnSaver
|
||||||
|
libXtst
|
||||||
|
libXdamage
|
||||||
|
] ++
|
||||||
|
(with pkgs; [
|
||||||
|
alsa-lib
|
||||||
|
gtk3
|
||||||
|
nss
|
||||||
|
mesa
|
||||||
|
]);
|
||||||
|
postFixup = ''
|
||||||
|
# make xdg-open overrideable at runtime
|
||||||
|
makeWrapper $out/opt/wavebox/wavebox $out/bin/wavebox \
|
||||||
|
--suffix PATH : ${super.xdg-utils}/bin
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
|
picom = super.picom.overrideAttrs (o: {
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
repo = "picom";
|
||||||
|
owner = "ibhagwan";
|
||||||
|
rev = "44b4970f70d6b23759a61a2b94d9bfb4351b41b1";
|
||||||
|
sha256 = "0iff4bwpc00xbjad0m000midslgx12aihs33mdvfckr75r114ylh";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue