discord envirnoment and minor things

This commit is contained in:
2025-01-04 15:42:36 +01:00
parent 01d41ea69a
commit 09c7770adf
8 changed files with 66 additions and 52 deletions

60
flake.lock generated
View File

@@ -82,11 +82,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1735856155, "lastModified": 1735943654,
"narHash": "sha256-L6KZUiS4cbVEX/4cIBudc18hcUXh5kf/VoCsgq2ci0k=", "narHash": "sha256-rXmcRRQfXXYAKOa5IXlrMISTwgScA2Dx04JpONXRA+Q=",
"owner": "chaotic-cx", "owner": "chaotic-cx",
"repo": "nyx", "repo": "nyx",
"rev": "e72544aa16e96071a121dc7bcc3ad021bf04aa0d", "rev": "5edcf7fb24c73ff9665f299461af33fa6171836f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -156,11 +156,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1735886062, "lastModified": 1735972386,
"narHash": "sha256-TTI7Lt1/hvu3xuUdc2UA9jACoarf/DAKtwHYhsQ/iD8=", "narHash": "sha256-5bqhkfe/dAxUGFSHz+4zpXSZONaB+KziQiWSnLPC1Ao=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "a65f3516dfcce5cf2157cc19d517b1bb87ed71b8", "rev": "16a543b819f511df865fb515f19fb84f4066c3f4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -429,11 +429,11 @@
"zig": "zig" "zig": "zig"
}, },
"locked": { "locked": {
"lastModified": 1735931349, "lastModified": 1735943291,
"narHash": "sha256-BzzAN8XHuXdbJD2bwXF0NP99673013MopicJd/dX+nU=", "narHash": "sha256-igXLrO0AtN7+k7VaR5zaHaPhDcS3go5NZr4liVqW9g4=",
"owner": "ghostty-org", "owner": "ghostty-org",
"repo": "ghostty", "repo": "ghostty",
"rev": "ab9b14215c234f7dc364047cdb2a7d78eab0c9ac", "rev": "1baf8928a0bd6ccc2f49e1e9478baab71d49a018",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -526,11 +526,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1735933851, "lastModified": 1735958984,
"narHash": "sha256-xN5pImisRyD4cnkUkc9uJeyeeex2dyZWeJugjoLjqyI=", "narHash": "sha256-N9cA4lIJd8+rsdjf5DRyhGhH/ZYYrZlSzY1bx7cGE8o=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "dabfb6ceeae1da57fb93efcd254e917db49655e6", "rev": "b47b946c47c1f5963e20f45b658016c130e89784",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -546,11 +546,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1735925111, "lastModified": 1735979091,
"narHash": "sha256-/NptDI4njO5hH0ZVQ2yzbvTXmBOabZaGYkjhnMJ37TY=", "narHash": "sha256-WpFjt6+8UD81EP386c269ZTqpEmlGJgcPw+OB4b7EBs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "ef64efdbaca99f9960f75efab991e4c49e79a5f1", "rev": "11ab08541e61ac3bbf2ab27229f68622629401df",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -766,11 +766,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1735908454, "lastModified": 1735946701,
"narHash": "sha256-BfS6oIqF6x7URohd9+RgB5o7FUzAcENiioLf1nDJA+o=", "narHash": "sha256-jCIIiEjgIs02N36fJCd+aU7QiqqdMWokfpFWO+sTdn0=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland", "repo": "hyprland",
"rev": "b0cd9972e8158bbda2ee3933668ce727e8a9ae5c", "rev": "60f069d54015fec66e63f1ff7e6ff26ddb349976",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -905,11 +905,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1735764512, "lastModified": 1735945036,
"narHash": "sha256-uPydOifWzDjXNnV224ZZGWicPAOzvixsjP/yF+nrqb0=", "narHash": "sha256-GHO0t06PgKyyZjGNwpsO+Mmwf22frDI8uGRJNXp9z50=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprlock", "repo": "hyprlock",
"rev": "e01afaf107650eb7f84ffe6444d1cfcfbb4a0ff5", "rev": "c3d95953c07f02810dfadf89fd8d3306e029b5dd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1369,11 +1369,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1735471104, "lastModified": 1735834308,
"narHash": "sha256-0q9NGQySwDQc7RhAV2ukfnu7Gxa5/ybJ2ANT8DQrQrs=", "narHash": "sha256-dklw3AXr3OGO4/XT1Tu3Xz9n/we8GctZZ75ZWVqAVhk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "88195a94f390381c6afcdaa933c2f6ff93959cb4", "rev": "6df24922a1400241dae323af55f30e4318a6ca65",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -1625,11 +1625,11 @@
"systems": "systems_7" "systems": "systems_7"
}, },
"locked": { "locked": {
"lastModified": 1735800691, "lastModified": 1735994155,
"narHash": "sha256-3xH7qejv0VW6OTgLpwDSfCAmfVZfkq6OtPJw8mtPEw0=", "narHash": "sha256-ewuykkTMO2+W594knAAMcPrzxg32iq40Q1zVgxJnY4c=",
"owner": "notashelf", "owner": "notashelf",
"repo": "nvf", "repo": "nvf",
"rev": "e614860a126b0de8feb6e1e5e9bc682f7840d1c5", "rev": "eb6e8b17b7beffd3792d898e30b0e9cd80de06ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -3645,11 +3645,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1735816508, "lastModified": 1735927297,
"narHash": "sha256-oag3BrD8UskICXnQSSjJ888rjUj/IhH9KlqJuqsqwrA=", "narHash": "sha256-Rn2MXhAXzttYaXhiyogqFbeLi+GuJq9u6cheqEBxfAo=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "d3dd40f6360f970179ed671d042e8e0902c770ac", "rev": "d1d4319f9b8ff37fa8630ba8588553f8e0a49945",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -188,7 +188,7 @@
enable = true; enable = true;
}; };
powerd = { powerd = {
enable = true; enable = false;
}; };
samba = { samba = {
enable = false; enable = false;

View File

@@ -185,7 +185,7 @@
enable = true; enable = true;
}; };
powerd = { powerd = {
enable = true; enable = false;
}; };
samba = { samba = {
enable = false; enable = false;

View File

@@ -5,6 +5,28 @@
... ...
}: let }: let
inherit (lib) mkIf mkOption mkEnableOption types; inherit (lib) mkIf mkOption mkEnableOption types;
variantMapping = {
stable = {
dir = "discord";
package = pkgs.discord;
};
ptb = {
dir = "discordptb";
package = pkgs.discord-ptb;
};
canary = {
dir = "discordcanary";
package = pkgs.discord-canary.override {withOpenASAR = true;};
};
vesktop = {
dir = "vesktop";
package = pkgs.vesktop;
};
};
getVariantConfig = variant:
if builtins.hasAttr variant variantMapping
then variantMapping.${variant}
else throw "Unknown package variant: ${variant}";
cfg = config.home.programs.discord; cfg = config.home.programs.discord;
in { in {
options = { options = {
@@ -17,21 +39,11 @@ in {
}; };
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = let home = {
variant = cfg.variant or "stable"; sessionVariables.DISCORD_USER_DATA_DIR = "$HOME/.config/${(getVariantConfig cfg.variant).dir}";
in packages = [(getVariantConfig cfg.variant).package];
if variant == "stable" };
then [pkgs.discord]
else if variant == "ptb"
then [pkgs.discord-ptb]
else if variant == "canary"
then [(pkgs.discord-canary.override {withOpenASAR = true;})]
else if variant == "vesktop"
then [pkgs.vesktop]
else throw "Unknown package variant: ${variant}";
xdg.configFile = mkIf (cfg.variant == "vesktop") { xdg.configFile = mkIf (cfg.variant == "vesktop") {
"vesktop/themes/base16.css".text = "vesktop/themes/base16.css".text =
/* /*

View File

@@ -109,6 +109,8 @@ in {
set -x fish_pager_color_description yellow set -x fish_pager_color_description yellow
set -x fish_pager_color_prefix 'white' '--bold' '--underline' set -x fish_pager_color_prefix 'white' '--bold' '--underline'
set -x fish_pager_color_progress 'brwhite' '--background=cyan' set -x fish_pager_color_progress 'brwhite' '--background=cyan'
microfetch
''; '';
}; };
}; };

View File

@@ -27,17 +27,17 @@ in {
"$launcher" = "rofi -show drun"; "$launcher" = "rofi -show drun";
bind = [ bind = [
"$mod, SPACE, exec, uwsm app -- $launcher" "$mod, SPACE, exec, tuirun-toggle.sh"
"$mod, R, exec, uwsm app -- $launcher" "$mod, R, exec, $launcher"
"$mod, L, exec, ${toggle "nwg-bar"}" "$mod, L, exec, ${toggle "nwg-bar"}"
"$mod SHIFT, B, exec, pkill -SIGUSR2 waybar" "$mod SHIFT, B, exec, pkill -SIGUSR2 waybar"
"$mod, A, exec, pkill -SIGUSR1 waybar" "$mod, A, exec, pkill -SIGUSR1 waybar"
"$mod, T, exec, uwsm app -- $terminal" "$mod, T, exec, $terminal"
"$mod, W, exec, $browser" "$mod, W, exec, $browser"
"$mod, K, exec, keepassxc" "$mod, K, exec, keepassxc"
"$mod SHIFT, W, exec, $browserinc" "$mod SHIFT, W, exec, $browserinc"
"$mod, Q, killactive," "$mod, Q, killactive,"
"$mod, E, exec, uwsm app -- $fileManager" "$mod, E, exec, $fileManager"
"$mod SHIFT, E, exec, $yazi" "$mod SHIFT, E, exec, $yazi"
"$mod, F, fullscreen," "$mod, F, fullscreen,"
"$mod SHIFT, F, togglefloating," "$mod SHIFT, F, togglefloating,"

View File

@@ -16,7 +16,7 @@ in {
{ {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
exec-once = [ exec-once = [
"uwsm finalize" "sleep 2 && uwsm finalize"
"hyprlock" "hyprlock"
]; ];
}; };

View File

@@ -24,7 +24,7 @@
enable = true; enable = true;
}; };
floorp = { floorp = {
enable = true; enable = false;
}; };
firefox = { firefox = {
enable = true; enable = true;