Compare commits

...

8 commits

Author SHA1 Message Date
a9f33961aa
Add neovim installation 2023-12-27 22:51:29 +01:00
b0d8723793
Fix alacritty window config
opacity wasn't registeres, because it wasn't inside the window object.
added y padding to push prompt a bit downwards
2023-12-27 22:51:17 +01:00
b47394fcb6
Add steam system installation 2023-12-27 22:50:11 +01:00
f5044e4d8d
Add customization home-manager modules 2023-12-27 22:49:54 +01:00
e27ad55ae9
Switch from home-manager steam to system steam
couldn't connect to server or sth. like that otherwise
2023-12-27 22:49:37 +01:00
744c486e83
Remove btop base16 background color
btop wouldnt be transparent otherwise
2023-12-27 22:48:37 +01:00
c2a910524c
Add playerctl service 2023-12-27 22:47:58 +01:00
6aee8be124
Add search engines & plugins to firefox 2023-12-27 22:43:37 +01:00
13 changed files with 207 additions and 6 deletions

View file

@ -7,11 +7,12 @@
truecolor = true;
vim_keys = true;
rounded_corners = true;
proc_gradient = false;
};
};
xdg.configFile."btop/themes/nix-colors".text = ''
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#${config.colorScheme.colors.base00}"
# theme[main_bg]="#${config.colorScheme.colors.base00}"
# Main text color
theme[main_fg]="#${config.colorScheme.colors.base05}"

View file

@ -6,6 +6,10 @@
...
}: let
in {
programs.neovim = {
enable = true;
};
home = {
file.".config/nvim/lua/custom/" = {
source = ../../../rsc/config/nvim;

View file

@ -5,6 +5,13 @@
}: {
programs.alacritty.enable = true;
programs.alacritty.settings = {
window = {
opacity = 0.83;
padding = {
x = 0;
y = 5;
};
};
colors = with config.colorScheme.colors; {
bright = {
black = "0x${base00}";

View file

@ -2,5 +2,6 @@
imports = [
./firefox.nix
./alacritty.nix
./playerctl.nix
];
}

View file

@ -7,14 +7,70 @@
imports = [inputs.arkenfox.hmModules.default];
programs.firefox = {
enable = true;
arkenfox = {
enable = true;
version = "119.0";
};
profiles.Default.arkenfox = {
enable = true;
"0000".enable = true;
profiles.Default = {
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
bitwarden
ublock-origin
darkreader
];
search.engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
"Searx" = {
urls = [
{
template = "https://paulgo.io/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
iconUpdateURL = "https://paulgo.io/favicon.ico";
definedAliases = ["@sx"];
};
};
search.force = true;
search.default = "Searx";
settings = {
"dom.security.https_only_mode" = true;
"browser.download.panel.shown" = true;
"signon.rememberSignons" = false;
};
arkenfox = {
enable = true;
"0000".enable = true;
};
};
};

View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
home.packages = with pkgs; [playerctl];
services.playerctld = {
enable = true;
};
}

View file

@ -1,5 +1,5 @@
{pkgs, ...}: {
imports = [
./steam.nix
# ./steam.nix
];
}

View file

@ -33,6 +33,7 @@
../common/optional/gnome-keyring.nix
../common/optional/adb.nix
../common/optional/gaming/gamemode.nix
../common/optional/gaming/steam.nix
../common/optional/gaming/vr.nix
];

View file

@ -0,0 +1,18 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs.unstable; [
heroic # Game Launcher
lutris # Game Launcher
steam # Game Launcher
];
programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = false;
};
# Steam: Right-click game - Properties - Launch options: gamemoderun %command%
# Lutris: General Preferences - Enable Feral GameMode
# - Global options - Add Environment Variables: LD_PRELOAD=/nix/store/*-gamemode-*-lib/lib/libgamemodeauto.so
};
}

View file

@ -2,5 +2,7 @@
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
# my-module = import ./my-module.nix;
fonts = import ./fonts.nix;
monitors = import ./monitors.nix;
wallpaper = import ./wallpaper.nix;
}

View file

@ -0,0 +1,32 @@
{
lib,
config,
...
}: let
mkFontOption = kind: {
family = lib.mkOption {
type = lib.types.str;
default = null;
description = "Family name for ${kind} font profile";
example = "Fira Code";
};
package = lib.mkOption {
type = lib.types.package;
default = null;
description = "Package for ${kind} font profile";
example = "pkgs.fira-code";
};
};
cfg = config.fontProfiles;
in {
options.fontProfiles = {
enable = lib.mkEnableOption "Whether to enable font profiles";
monospace = mkFontOption "monospace";
regular = mkFontOption "regular";
};
config = lib.mkIf cfg.enable {
fonts.fontconfig.enable = true;
home.packages = [cfg.monospace.package cfg.regular.package];
};
}

View file

@ -0,0 +1,62 @@
{
lib,
config,
...
}: let
inherit (lib) mkOption types;
cfg = config.monitors;
in {
options.monitors = mkOption {
type = types.listOf (types.submodule {
options = {
name = mkOption {
type = types.str;
example = "DP-1";
};
primary = mkOption {
type = types.bool;
default = false;
};
width = mkOption {
type = types.int;
example = 1920;
};
height = mkOption {
type = types.int;
example = 1080;
};
refreshRate = mkOption {
type = types.int;
default = 60;
};
x = mkOption {
type = types.int;
default = 0;
};
y = mkOption {
type = types.int;
default = 0;
};
enabled = mkOption {
type = types.bool;
default = true;
};
workspace = mkOption {
type = types.nullOr types.str;
default = null;
};
};
});
default = [];
};
config = {
assertions = [
{
assertion =
((lib.length config.monitors) != 0)
-> ((lib.length (lib.filter (m: m.primary) config.monitors)) == 1);
message = "Exactly one monitor must be set to primary.";
}
];
};
}

View file

@ -0,0 +1,11 @@
{lib, ...}: let
inherit (lib) types mkOption;
in {
options.wallpaper = mkOption {
type = types.path;
default = "";
description = ''
Wallpaper path
'';
};
}