Progress on some things, can't remember what though
This commit is contained in:
parent
7e368b4f40
commit
b921c2ac47
|
@ -5,7 +5,7 @@ precision mediump float;
|
|||
uniform float time;
|
||||
uniform vec2 resolution;
|
||||
|
||||
#define iTime time * 0.01 + 10.0
|
||||
#define iTime time * 0.05 + 50.0
|
||||
#define iResolution resolution
|
||||
#define fragCoord gl_FragCoord
|
||||
#define fragColor gl_FragColor
|
||||
|
@ -105,4 +105,4 @@ void main()
|
|||
vec2 uv = fragCoord.xy/iResolution.x;
|
||||
float shade = pattern(uv);
|
||||
fragColor = vec4(colormap(shade).rgb, shade);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ in
|
|||
home.packages = with pkgs; [
|
||||
pulsemixer
|
||||
playerctl
|
||||
wpa_supplicant_gui # TODO: Move
|
||||
];
|
||||
|
||||
programs.waybar = {
|
||||
|
@ -34,6 +35,7 @@ in
|
|||
"mpris"
|
||||
];
|
||||
modules-right = [
|
||||
"network"
|
||||
"pulseaudio"
|
||||
"battery"
|
||||
"clock"
|
||||
|
@ -55,6 +57,13 @@ in
|
|||
];
|
||||
disable-click = false;
|
||||
};
|
||||
network = {
|
||||
tooltip = false;
|
||||
on-click = "wpa_gui";
|
||||
format-wifi = "直 {essid}"; # Spacing achieved using "Thin Space"
|
||||
format-ethernet = "TODO";
|
||||
format-disconnected = "睊";
|
||||
};
|
||||
pulseaudio = {
|
||||
tooltip = false;
|
||||
format = "{icon} {volume}%"; # Spacing achieved using "Thin Space"
|
||||
|
|
|
@ -22,27 +22,33 @@ in
|
|||
# TODO: Move elsewhere and make keybindings more configurable
|
||||
modules.rofi.enable = true;
|
||||
|
||||
# TODO: Move elsewhere
|
||||
home.packages = with pkgs; [
|
||||
brightnessctl
|
||||
# owm
|
||||
];
|
||||
|
||||
# Change desktop to execute river
|
||||
modules.desktop.initScript = ''
|
||||
river
|
||||
'';
|
||||
|
||||
# Update background after rebuild
|
||||
home.activation = {
|
||||
river = lib.hm.dag.entryBetween [ "reloadSystemd" ] [ "installPackages" ] ''
|
||||
# Close waybar
|
||||
PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill waybar
|
||||
# home.activation = {
|
||||
# river = lib.hm.dag.entryBetween [ "reloadSystemd" ] [ "installPackages" ] ''
|
||||
# # Close waybar
|
||||
# PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill waybar
|
||||
|
||||
# Kill rivertile
|
||||
PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill rivertile
|
||||
# # Kill rivertile
|
||||
# PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill rivertile
|
||||
|
||||
# Kill glpaper
|
||||
PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill glpaper
|
||||
# # Kill glpaper
|
||||
# PATH="${pkgs.procps}/bin:$PATH" $DRY_RUN_CMD pkill glpaper
|
||||
|
||||
# Restart river
|
||||
PATH="${pkgs.river}/bin:${pkgs.systemd}/bin:$PATH" $DRY_RUN_CMD ~/.config/river/init
|
||||
'';
|
||||
};
|
||||
# # Restart river
|
||||
# PATH="${pkgs.river}/bin:${pkgs.systemd}/bin:${pkgs.waybar}/bin:$PATH" $DRY_RUN_CMD ~/.config/river/init
|
||||
# '';
|
||||
# };
|
||||
|
||||
# River setup
|
||||
wayland.windowManager.river = {
|
||||
|
@ -230,6 +236,7 @@ in
|
|||
"-app-id" = {
|
||||
"'bar'" = "csd";
|
||||
"'*'" = "ssd";
|
||||
"'wpa_gui'" = "float";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -17,18 +17,28 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
# Development packages
|
||||
home.packages = with pkgs; [
|
||||
# rustup
|
||||
rustc
|
||||
cargo
|
||||
gcc
|
||||
# lldb
|
||||
gdb
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
];
|
||||
|
||||
# VSCode configuration
|
||||
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 = {
|
||||
"[rust]" = { };
|
||||
"[rust]" = {
|
||||
"editor.inlayHints.enabled" = "off";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -14,5 +14,9 @@ in
|
|||
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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,7 +22,6 @@ in
|
|||
enable = true;
|
||||
settings = {
|
||||
base_url = "https://keys.bulthuis.dev";
|
||||
identity_url = "https://keys.bulthuis.dev";
|
||||
email = "jan@bulthuis.dev";
|
||||
pinentry = pkgs.pinentry;
|
||||
};
|
||||
|
|
|
@ -32,7 +32,10 @@ in
|
|||
enable = true;
|
||||
|
||||
mutableExtensionsDir = false;
|
||||
extensions = with pkgs.vscode-extensions; [ eamodio.gitlens ];
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
eamodio.gitlens
|
||||
ms-vscode.hexeditor
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
# Font setup
|
||||
|
|
|
@ -6,20 +6,6 @@
|
|||
}:
|
||||
|
||||
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 {
|
||||
wqy-zenhei = pkgs.callPackage ./fonts/wqy-zenhei.nix { };
|
||||
|
|
|
@ -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 = "";
|
||||
}
|
|
@ -34,6 +34,7 @@
|
|||
};
|
||||
neovim.enable = true;
|
||||
rofi-rbw.enable = true;
|
||||
obsidian.enable = true;
|
||||
|
||||
# Programming languages
|
||||
nix.enable = true;
|
||||
|
@ -58,10 +59,10 @@
|
|||
|
||||
# Color scheme
|
||||
themes.catppuccin = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
flavor = "latte";
|
||||
};
|
||||
themes.sakura.enable = true;
|
||||
themes.sakura.enable = false;
|
||||
};
|
||||
|
||||
# TODO: Remove everything below, it is here out of convenience and should be elsewhere
|
||||
|
|
Loading…
Reference in New Issue