modules: change some settings, move steam options

This commit is contained in:
Charlie Root 2024-08-16 13:40:52 +02:00
commit febb421800
9 changed files with 14 additions and 53 deletions

View file

@ -5,10 +5,9 @@ _: {
./mpv.nix ./mpv.nix
./zathura.nix ./zathura.nix
./spicetify.nix ./spicetify.nix
./kitty.nix
./steam.nix ./steam.nix
./waybar.nix ./waybar.nix
./schizofox ./schizofox.nix
./minecraft.nix ./minecraft.nix
]; ];
} }

View file

@ -11,8 +11,8 @@
inherit (lib) mkIf; inherit (lib) mkIf;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.sessionVariables = {TERM = "foot";};
home-manager.users.${username} = { home-manager.users.${username} = {
home.sessionVariables.TERM = "foot";
programs.foot = { programs.foot = {
enable = true; enable = true;
package = inputs'.nixpkgs-wayland.packages.foot; package = inputs'.nixpkgs-wayland.packages.foot;
@ -71,7 +71,7 @@ in {
}; };
mouse = { mouse = {
hide-when-typing = "yes"; hide-when-typing = "yes"; # not really needed since we already enable this in Hyprland
alternate-scroll-mode = "yes"; alternate-scroll-mode = "yes";
}; };

View file

@ -1,24 +0,0 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.modules.system.programs.terminals.kitty;
inherit (config.modules.other.system) username;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.kitty = {
enable = true;
settings = {
mouse_hide_wait = -1;
allow_remote_control = true;
url_style = "curly";
open_url_with = "default";
confirm_os_window_close = "0";
};
};
};
};
}

View file

@ -18,13 +18,13 @@ in {
spotifyPackage = pkgs.spotify; spotifyPackage = pkgs.spotify;
theme = spicePkgs.themes.catppuccin; theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha"; colorScheme = "mocha";
# enabledExtensions = with spicePkgs.extensions; [ enabledExtensions = with spicePkgs.extensions; [
# shuffle # shuffle
# popupLyrics # popupLyrics
# adblock adblock
# betterGenres # betterGenres
# playlistIcons # playlistIcons
# ]; ];
}; };
}; };
}; };

View file

@ -5,17 +5,12 @@
... ...
}: }:
with lib; let with lib; let
cfg = config.modules.programs.steam; cfg = config.modules.system.programs.steam;
in { in {
options.modules.programs.steam = {
enable = mkEnableOption "steam";
gamescope = mkEnableOption "gamescope";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.steam = { programs.steam = {
enable = true; enable = true;
gamescopeSession.enable = mkIf cfg.gamescope true; gamescopeSession.enable = true;
extraCompatPackages = with pkgs; [proton-ge-bin]; extraCompatPackages = with pkgs; [proton-ge-bin];
}; };
# See # See

View file

@ -5,7 +5,7 @@
exec = "${pkgs.nur.repos.Nick1296.vivado-2019-2}/bin/vivado"; exec = "${pkgs.nur.repos.Nick1296.vivado-2019-2}/bin/vivado";
}; };
in { in {
environment.systemPackages = with pkgs; [ environment.systemPackages = [
# this propietary software is huge, but I need it for # this propietary software is huge, but I need it for
# university # university
pkgs.nur.repos.Nick1296.vivado-2019-2 pkgs.nur.repos.Nick1296.vivado-2019-2

View file

@ -7,21 +7,11 @@
with lib; let with lib; let
cfg = config.modules.system.programs.zathura; cfg = config.modules.system.programs.zathura;
inherit (config.modules.other.system) username; inherit (config.modules.other.system) username;
catppuccin = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "zathura";
rev = "4eb02fd206de63b2423f6deb58242d352545b52f";
hash = "sha256-/vD/hOi6KcaGyAp6Az7jL5/tQSGRzIrf0oHjAJf4QbI=";
};
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {
xdg.configFile."zathura/catppuccin-mocha".source = "${catppuccin}/src/catppuccin-mocha";
programs.zathura = { programs.zathura = {
enable = true; enable = true;
extraConfig = ''
include catppuccin-mocha
'';
options = { options = {
selection-clipboard = "clipboard"; selection-clipboard = "clipboard";
adjust-open = "best-fit"; adjust-open = "best-fit";

View file

@ -15,6 +15,7 @@ in {
nextcloud.enable = mkEnableOption "Nextcloud sync client"; nextcloud.enable = mkEnableOption "Nextcloud sync client";
firefox.enable = mkEnableOption "Firefox web browser"; firefox.enable = mkEnableOption "Firefox web browser";
zellij.enable = mkEnableOption "Zellij terminal multiplexer"; zellij.enable = mkEnableOption "Zellij terminal multiplexer";
steam.enable = mkEnableOption "Steam games platform";
terminals = { terminals = {
foot.enable = mkEnableOption "Foot terminal emulator"; foot.enable = mkEnableOption "Foot terminal emulator";