Progress on some things, can't remember what though

This commit is contained in:
Jan Bulthuis 2024-07-31 13:39:09 +02:00
parent 7e368b4f40
commit b921c2ac47
10 changed files with 74 additions and 35 deletions

View File

@ -5,7 +5,7 @@ precision mediump float;
uniform float time; uniform float time;
uniform vec2 resolution; uniform vec2 resolution;
#define iTime time * 0.01 + 10.0 #define iTime time * 0.05 + 50.0
#define iResolution resolution #define iResolution resolution
#define fragCoord gl_FragCoord #define fragCoord gl_FragCoord
#define fragColor gl_FragColor #define fragColor gl_FragColor
@ -105,4 +105,4 @@ void main()
vec2 uv = fragCoord.xy/iResolution.x; vec2 uv = fragCoord.xy/iResolution.x;
float shade = pattern(uv); float shade = pattern(uv);
fragColor = vec4(colormap(shade).rgb, shade); fragColor = vec4(colormap(shade).rgb, shade);
} }

View File

@ -20,6 +20,7 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
pulsemixer pulsemixer
playerctl playerctl
wpa_supplicant_gui # TODO: Move
]; ];
programs.waybar = { programs.waybar = {
@ -34,6 +35,7 @@ in
"mpris" "mpris"
]; ];
modules-right = [ modules-right = [
"network"
"pulseaudio" "pulseaudio"
"battery" "battery"
"clock" "clock"
@ -55,6 +57,13 @@ in
]; ];
disable-click = false; disable-click = false;
}; };
network = {
tooltip = false;
on-click = "wpa_gui";
format-wifi = " {essid}"; # Spacing achieved using "Thin Space"
format-ethernet = "TODO";
format-disconnected = "";
};
pulseaudio = { pulseaudio = {
tooltip = false; tooltip = false;
format = "{icon}{volume}%"; # Spacing achieved using "Thin Space" format = "{icon}{volume}%"; # Spacing achieved using "Thin Space"

View File

@ -22,27 +22,33 @@ in
# TODO: Move elsewhere and make keybindings more configurable # TODO: Move elsewhere and make keybindings more configurable
modules.rofi.enable = true; modules.rofi.enable = true;
# TODO: Move elsewhere
home.packages = with pkgs; [
brightnessctl
# owm
];
# Change desktop to execute river # Change desktop to execute river
modules.desktop.initScript = '' modules.desktop.initScript = ''
river river
''; '';
# Update background after rebuild # Update background after rebuild
home.activation = { # home.activation = {
river = lib.hm.dag.entryBetween [ "reloadSystemd" ] [ "installPackages" ] '' # river = lib.hm.dag.entryBetween [ "reloadSystemd" ] [ "installPackages" ] ''
# Close waybar # # Close waybar
PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill waybar # PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill waybar
# Kill rivertile # # Kill rivertile
PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill rivertile # PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill rivertile
# Kill glpaper # # Kill glpaper
PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill glpaper # PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill glpaper
# Restart river # # Restart river
PATH="${pkgs.river}/bin:${pkgs.systemd}/bin:$PATH" $DRY_RUN_CMD ~/.config/river/init # PATH="${pkgs.river}/bin:${pkgs.systemd}/bin:${pkgs.waybar}/bin:$PATH" $DRY_RUN_CMD ~/.config/river/init
''; # '';
}; # };
# River setup # River setup
wayland.windowManager.river = { wayland.windowManager.river = {
@ -230,6 +236,7 @@ in
"-app-id" = { "-app-id" = {
"'bar'" = "csd"; "'bar'" = "csd";
"'*'" = "ssd"; "'*'" = "ssd";
"'wpa_gui'" = "float";
}; };
}; };
}; };

View File

@ -17,18 +17,28 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
# Development packages # Development packages
home.packages = with pkgs; [ home.packages = with pkgs; [
# rustup
rustc rustc
cargo cargo
gcc
# lldb
gdb
rust-analyzer rust-analyzer
rustfmt rustfmt
]; ];
# VSCode configuration # VSCode configuration
programs.vscode = { programs.vscode = {
extensions = with pkgs.vscode-extensions; [ rust-lang.rust-analyzer ]; extensions = with pkgs.vscode-extensions; [
rust-lang.rust-analyzer
# ms-vscode.cpp-tools
vadimcn.vscode-lldb
];
userSettings = { userSettings = {
"[rust]" = { }; "[rust]" = {
"editor.inlayHints.enabled" = "off";
};
}; };
}; };

View File

@ -14,5 +14,9 @@ in
enable = mkEnableOption "obsidian"; enable = mkEnableOption "obsidian";
}; };
config = mkIf cfg.enable { home.packages = with pkgs; [ obsidian ]; }; config = mkIf cfg.enable {
modules.unfree.allowedPackages = [ "obsidian" ];
home.packages = with pkgs; [ obsidian ];
};
} }

View File

@ -22,7 +22,6 @@ in
enable = true; enable = true;
settings = { settings = {
base_url = "https://keys.bulthuis.dev"; base_url = "https://keys.bulthuis.dev";
identity_url = "https://keys.bulthuis.dev";
email = "jan@bulthuis.dev"; email = "jan@bulthuis.dev";
pinentry = pkgs.pinentry; pinentry = pkgs.pinentry;
}; };

View File

@ -32,7 +32,10 @@ in
enable = true; enable = true;
mutableExtensionsDir = false; mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [ eamodio.gitlens ]; extensions = with pkgs.vscode-extensions; [
eamodio.gitlens
ms-vscode.hexeditor
];
userSettings = { userSettings = {
# Font setup # Font setup

View File

@ -6,20 +6,6 @@
}: }:
with lib; with lib;
# let
# mkPackage = path: (mkOption {
# type = types.package;
# default = (pkgs.callPackage path) {};
# description = (mkPackage path).default.name;
# });
# in {
# options.pkgs = {
# # Add all custom packages
# wqy-zenhei = mkPackage ./fonts/wqy-zenhei.nix;
# wqy-microhei = mkPackage ./fonts/wqy-microhei.nix;
# wqy-bitmapsong = mkPackage ./fonts/wqy-bitmapsong.nix;
# };
# }
{ {
nixpkgs.config.packageOverrides = pkgs: rec { nixpkgs.config.packageOverrides = pkgs: rec {
wqy-zenhei = pkgs.callPackage ./fonts/wqy-zenhei.nix { }; wqy-zenhei = pkgs.callPackage ./fonts/wqy-zenhei.nix { };

20
pkgs/river/owm.nix Normal file
View File

@ -0,0 +1,20 @@
{
lib,
config,
pkgs,
...
}:
pkgs.rustPlatform.buildRustPackage rec {
pname = "owm";
version = "0.1.0";
src = pkgs.fetchFromGitHub {
owner = "justinlovinger";
repo = pname;
rev = "master";
sha256 = "sha256-l9usg0XGtghCX8elvjExYJgMuMGeujOoS2n1hCQkN78=";
};
cargoSha256 = "";
}

View File

@ -34,6 +34,7 @@
}; };
neovim.enable = true; neovim.enable = true;
rofi-rbw.enable = true; rofi-rbw.enable = true;
obsidian.enable = true;
# Programming languages # Programming languages
nix.enable = true; nix.enable = true;
@ -58,10 +59,10 @@
# Color scheme # Color scheme
themes.catppuccin = { themes.catppuccin = {
enable = false; enable = true;
flavor = "latte"; flavor = "latte";
}; };
themes.sakura.enable = true; themes.sakura.enable = false;
}; };
# TODO: Remove everything below, it is here out of convenience and should be elsewhere # TODO: Remove everything below, it is here out of convenience and should be elsewhere