Compare commits

...

9 Commits

Author SHA1 Message Date
Armel van Ravels
b1c55cd56d Add direnv integration to vscode 2026-01-30 17:24:05 +01:00
Armel van Ravels
070c65046e Battery status 2026-01-30 17:24:05 +01:00
Armel van Ravels
eb0d613133 Add vscode 2026-01-30 17:24:05 +01:00
Armel van Ravels
48e566b79e Add vscode to programs 2026-01-30 17:24:05 +01:00
Armel van Ravels
c9e194a36e Changes for work machine 2026-01-30 17:24:05 +01:00
77d4a53df2 Add direnv config 2026-01-30 17:22:19 +01:00
e8d58b71d6 Merge pull request 'Set compact dark theme in firefox' (#30) from feature/firefox-theme into master
Reviewed-on: #30
2026-01-30 10:41:49 +01:00
591068d563 Set compact dark theme in firefox 2026-01-30 10:40:14 +01:00
9b0fca4ca9 Add next/prev media keys 2026-01-30 08:42:23 +01:00
9 changed files with 69 additions and 6 deletions

View File

@@ -19,7 +19,10 @@
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
homeConfigurations = {

View File

@@ -15,6 +15,7 @@
./programs/direnv.nix
./programs/firefox.nix
./programs/tmux.nix
./programs/vscode.nix
./wm/rofi.nix
./wm/cursor.nix
./wm/dconf.nix

View File

@@ -6,8 +6,8 @@
enableZshIntegration = true;
nix-direnv.enable = true;
};
home.sessionVariables = {
DIRENV_CACHE = "${config.home.homeDirectory}/.cache/direnv";
home.file.".config/direnv/direnvrc" = {
source = ./direnv/direnvrc;
};
}

15
programs/direnv/direnvrc Normal file
View File

@@ -0,0 +1,15 @@
# Place in ~/.config/direnv/direnvrc
# Two things to know:
# * `direnv_layour_dir` is called once for every {.direnvrc,.envrc} sourced
# * The indicator for a different direnv file being sourced is a different $PWD value
# This means we can hash $PWD to get a fully unique cache path for any given environment
: ${XDG_CACHE_HOME:=$HOME/.cache}
declare -A direnv_layout_dirs
direnv_layout_dir() {
echo "${direnv_layout_dirs[$PWD]:=$(
echo -n "$XDG_CACHE_HOME"/direnv/layouts/
echo -n "$PWD" | sha1sum | cut -d ' ' -f 1
)}"
}

View File

@@ -4,6 +4,12 @@
programs.firefox = {
enable = true;
profiles.default = {
settings = {
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
};
};
policies = {
# From https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/17
ExtensionSettings = with builtins;

25
programs/vscode.nix Normal file
View File

@@ -0,0 +1,25 @@
{ pkgs, ... }:
{
programs.vscode = {
enable = true;
package = pkgs.vscode.fhs;
profiles.default.extensions = with pkgs.vscode-extensions; [
ms-dotnettools.csharp
ms-dotnettools.csdevkit
ms-dotnettools.vscode-dotnet-runtime
mkhl.direnv # Direnv integration for VSCode
];
profiles.default.userSettings = {
"direnv.restart.automatic" = true;
"terminal.integrated.defaultProfile.linux" = "zsh";
"terminal.integrated.profiles.linux" = {
zsh = {
path = pkgs.zsh;
};
};
};
};
}

View File

@@ -30,8 +30,8 @@
};
decoration = {
inactive_opacity = 0.8;
active_opacity = 0.9;
inactive_opacity = 0.9;
active_opacity = 1.0;
rounding = 5;
rounding_power = 2.5;
blur = {
@@ -122,6 +122,8 @@
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
];
bindm = [

View File

@@ -15,6 +15,7 @@ in
];
wallpaper = [
"DP-2,${wallpaper2}"
"HDMI-A-1,${wallpaper2}"
",${wallpaper}"
];
};

View File

@@ -24,6 +24,7 @@
"pulseaudio"
"cpu"
"tray"
"battery"
"clock"
];
@@ -49,6 +50,10 @@
ignored-players = [ "firefox" "vlc" ];
};
tray = {
spacing = 10;
};
cpu = {
format = " {usage}%";
tooltip = false;
@@ -62,6 +67,11 @@
format = "{icon} {name}";
on-click = "activate";
};
battery = {
"format" = "{icon} {capacity}%";
"format-icons" = ["" "" "" "" ""];
};
};
};
}