Merge branch 'main' of github.com:bloxx12/nichts

This commit is contained in:
larszauberer 2024-04-18 11:34:43 +02:00
commit 26447cc026
8 changed files with 106 additions and 24 deletions

View file

@ -61,6 +61,14 @@
install_url = "https://addons.mozilla.org/firefox/downloads/file/4231522/new_tab_override-16.0.0.xpi"; install_url = "https://addons.mozilla.org/firefox/downloads/file/4231522/new_tab_override-16.0.0.xpi";
installation_mode = "force_installed"; installation_mode = "force_installed";
}; };
"keepassxc-browser@keepassxc.org" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/4257616/keepassxc_browser-1.9.0.3.xpi";
installation_mode = "force_installed";
};
"{7be2ba16-0f1e-4d93-9ebc-5164397477a9}" = {
install_url = "https://addons.mozilla.org/firefox/downloads/file/3756025/videospeed-0.6.3.3.xpi";
installation_mode = "force_installed";
};
}; };
}; };

View file

@ -91,6 +91,9 @@ in {
exec-once = [ exec-once = [
"waybar" "waybar"
"swww init & swww img ${gitPath}/${cfg.wallpaper}" "swww init & swww img ${gitPath}/${cfg.wallpaper}"
"keepassxc"
"nextcloud"
"element-desktop --ozone-platform=wayland --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --enable-features=WebRTCPipeWireCpaturer --disable-gpu"
]; ];
bind = [ bind = [
@ -120,8 +123,13 @@ in {
"$mod, down, movefocus, d" "$mod, down, movefocus, d"
"$mod, F, fullscreen" "$mod, F, fullscreen"
# Special Workspaces
"$mod SHIFT, F, movetoworkspacesilent, special"
"$mod, s, togglespecialworkspace,"
# Screenshot # Screenshot
"$mod SHIFT, s, exec, grim -g '$(slurp -d)' - | wl-copy" "$mod SHIFT, s, exec, grim -g \"$(slurp -d)\" - | wl-copy"
] ]
++ ( ++ (
builtins.concatLists (builtins.genList ( builtins.concatLists (builtins.genList (
@ -137,6 +145,11 @@ in {
) )
10) 10)
); );
# Mouse movement
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
} cfg.extra]; } cfg.extra];
}; };
}; };

View file

@ -13,6 +13,11 @@
opacity = 0.8; opacity = 0.8;
blur = true; blur = true;
}; };
steam = {
enable = true;
gamescope = true;
};
}; };
hyprland = { hyprland = {

View file

@ -1,6 +1,30 @@
{ config, inputs, pkgs, ... }: { config, inputs, pkgs, lib, ... }:
let let
username = config.modules.other.system.username; username = config.modules.other.system.username;
# Fetch the GLFW with Wayland patches for Minecraft
customGLFW = let
mcWaylandPatchRepo = pkgs.fetchFromGitHub {
owner = "Admicos";
repo = "minecraft-wayland";
rev = "370ce5b95e3ae9bc4618fb45113bc641fbb13867";
sha256 = "sha256-RPRg6Gd7N8yyb305V607NTC1kUzvyKiWsh6QlfHW+JE=";
};
mcWaylandPatches = map (name: "${mcWaylandPatchRepo}/${name}")
(lib.naturalSort (builtins.attrNames (lib.filterAttrs
(name: type:
type == "regular" && lib.hasSuffix ".patch" name)
(builtins.readDir mcWaylandPatchRepo))));
in pkgs.glfw.overrideAttrs (previousAttrs: {
patches = previousAttrs.patches ++ mcWaylandPatches;
buildInputs = previousAttrs.buildInputs ++ [ pkgs.wayland ];
});
# Minecraft launcher with the custom GLFW
minecraftPrismLauncher = pkgs.prismlauncher.override {
glfw = customGLFW;
};
in { in {
home-manager.users.${username} = { home-manager.users.${username} = {
home.packages = let home.packages = let
@ -9,4 +33,9 @@ in {
in with pkgs; [ in with pkgs; [
]; ];
}; };
# System-wide installation of Minecraft PrismLauncher
environment.systemPackages = [
minecraftPrismLauncher
];
} }

View file

@ -63,6 +63,8 @@ in {
yubikey-personalization-gui yubikey-personalization-gui
yubikey-personalization yubikey-personalization
yubioath-flutter yubioath-flutter
fzf
nix-index
]; ];
}; };
} }

View file

@ -13,5 +13,6 @@ _: {
./WM ./WM
./alacritty.nix ./alacritty.nix
./firefox.nix ./firefox.nix
./steam.nix
]; ];
} }

View file

@ -18,7 +18,7 @@ in {
enable = true; enable = true;
policies = { policies = {
DisableTelemetry = true; DisableTelemetry = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
EnableTrackingProtection = { EnableTrackingProtection = {
Value= true; Value= true;
@ -36,28 +36,30 @@ in {
DisplayBookmarksToolbar = "never"; # alternatives: "always" or "newtab" DisplayBookmarksToolbar = "never"; # alternatives: "always" or "newtab"
DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on" DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on"
SearchBar = "unified"; # alternative: "separate" SearchBar = "unified"; # alternative: "separate"
FirefoxSuggest = { FirefoxSuggest = {
WebSuggestions = true; WebSuggestions = true;
ImproveSuggest = true; ImproveSuggest = true;
Locked = true; Locked = true;
}; };
SearchSuggestEnabled = true; SearchSuggestEnabled = true;
theme = { theme = {
colors = { colors = {
background-darker = "181825"; background-darker = "181825";
background = "1e1e2e"; background = "1e1e2e";
foreground = "cdd6f4"; foreground = "cdd6f4";
}; };
}; };
font = "Lexend"; OfferToSaveLogins = false;
ExtensionSettings = lib.mkMerge [{
"uBlock0@raymondhill.net" = { font = "Lexend";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; ExtensionSettings = lib.mkMerge [{
installation_mode = "force_installed"; "uBlock0@raymondhill.net" = {
}; install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
} cfg.extensions]; installation_mode = "force_installed";
}; };
} cfg.extensions];
};
}; };
}; };
}; };

22
modules/gui/steam.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, inputs, pkgs, ... }:
with lib; let
username = config.modules.other.system.username;
cfg = config.modules.programs.steam;
in {
options.modules.programs.steam = {
enable = mkEnableOption "steam";
gamescope = mkEnableOption "gamescope";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
gamescopeSession.enable = mkIf cfg.gamescope true;
};
home-manager.users.${username} = {
};
};
}