upd hyprland & sway

This commit is contained in:
zack 2024-08-21 14:35:32 -04:00
parent 309fa70672
commit 07cf079bd9
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35
9 changed files with 107 additions and 22 deletions

View file

@ -7,7 +7,6 @@
}: { }: {
wms.hyprland.enable = true; wms.hyprland.enable = true;
apps = { apps = {
web.firefox.enable = true;
web.librewolf.enable = true; web.librewolf.enable = true;
web.librewolf.setDefault = true; web.librewolf.setDefault = true;
@ -24,6 +23,7 @@
term.kitty.enable = true; term.kitty.enable = true;
term.foot.enable = true; term.foot.enable = true;
term.rio.enable = true;
music.spotify.enable = true; music.spotify.enable = true;

View file

@ -19,5 +19,14 @@
"highlighthigh" = "524f67"; "highlighthigh" = "524f67";
}; };
fonts = {
mono = {
normal = "Iosevka Bold";
bold = "Iosevka ExtraBold";
italic = "Iosevka Bold Italic";
bold_italic = "Iosevka ExtraBold Italic";
};
};
wallpaper = ./wallpaper.png; wallpaper = ./wallpaper.png;
} }

View file

@ -20,19 +20,7 @@ in {
programs.spicetify = { programs.spicetify = {
enable = true; enable = true;
theme = spicePkgs.themes.catppuccin; theme = spicePkgs.themes.catppuccin;
spotifyPackage = pkgs.spotify.overrideAttrs { spotifyPackage = pkgs.spotify;
fixupPhase = ''
runHook preFixup
wrapProgramShell $out/share/spotify/spotify \
''${gappsWrapperArgs[@]} \
--prefix LD_LIBRARY_PATH : "$librarypath" \
--prefix PATH : "${pkgs.gnome.zenity}/bin" \
--add-flags "--disable-gpu"
runHook postFixup
'';
};
colorScheme = "mocha"; colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [ enabledExtensions = with spicePkgs.extensions; [

View file

@ -15,6 +15,11 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.foot = { programs.foot = {
enable = true; enable = true;
settings = {
colors = {
alpha = "0.9";
};
};
}; };
}; };
} }

View file

@ -0,0 +1,59 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.term.rio;
in {
options.apps.term.rio = with types; {
enable = mkBoolOpt false "Enable Rio Terminal";
};
config = mkIf cfg.enable {
programs.rio = {
enable = true;
settings = {
window = {
opacity = 0.9;
blur = true;
};
padding-x = 10;
padding-y = [10 10];
navigation = {
mode = "Plain";
};
fonts = {
regular = {
family = "Iosevka";
style = "normal";
weight = 700;
};
bold = {
family = "Iosevka";
style = "normal";
weight = 800;
};
italic = {
family = "Iosevka";
style = "italic";
weight = 700;
};
bold-italic = {
family = "Iosevka";
style = "italic";
weight = 800;
};
};
};
};
};
}

View file

@ -41,16 +41,16 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
xwayland.enable = true; # xwayland.enable = true;
# package = inputs.hyprland.packages.${system}.default; # package = inputs.hyprland.packages.${system}.default;
systemd = { systemd = {
enable = true; enable = true;
# variables = ["--all"]; variables = ["--all"];
# extraCommands = [ extraCommands = [
# "systemctl --user stop graphical-session.target" "systemctl --user stop graphical-session.target"
# "systemctl --user start hyprland-session.target" "systemctl --user start hyprland-session.target"
# ]; ];
}; };
}; };

View file

@ -31,6 +31,8 @@ in {
menu = "killall anyrun || anyrun"; menu = "killall anyrun || anyrun";
modifier = "Mod4";
input = { input = {
"Logitech USB Receiver Keyboard" = { "Logitech USB Receiver Keyboard" = {
accel_profile = "flat"; accel_profile = "flat";

View file

@ -16,7 +16,6 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.etc."greetd/environments".text = '' environment.etc."greetd/environments".text = ''
Hyprland
sway sway
''; '';
@ -35,7 +34,7 @@ in {
environment = { environment = {
variables = { variables = {
# NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
__GL_GSYNC_ALLOWED = "0"; __GL_GSYNC_ALLOWED = "0";
__GL_VRR_ALLOWED = "0"; __GL_VRR_ALLOWED = "0";
_JAVA_AWT_WM_NONEREPARENTING = "1"; _JAVA_AWT_WM_NONEREPARENTING = "1";

View file

@ -0,0 +1,23 @@
let
pkgs = import <nixpkgs> {};
# I don't know if it needs gcc
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
# TODO: Install from cargo? Or use this instead?
rust-cbindgen
# TODO: Install from cargo? Or use this instead?
rust-bindgen
alsa-lib
cargo
clang
gcc
libpulseaudio
libclang
llvm
pkg-config
python3
rustc
];
}