Skip to content

Commit

Permalink
feat: wallpaper management
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Jan 8, 2025
1 parent 5fe65bf commit 2e42671
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 37 deletions.
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions system/nix/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = [pkgs.nvfetcher];
nix = {
# gc kills ssds
gc.automatic = false;
Expand Down Expand Up @@ -42,6 +43,11 @@
};
};

programs.nh = {
enable = true;
flake = "/home/sioodmy/dev/dotfiles";
};

# WE DONT WANT TO BUILD STUFF ON TMPFS
# ITS NOT A GOOD IDEA
systemd.services.nix-daemon = {
Expand Down
1 change: 1 addition & 0 deletions system/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@

openDefaultPorts = true;
};
programs.adb.enable = true;
boot.kernel.sysctl."fs.inotify.max_user_watches" = 1048576;
}
1 change: 0 additions & 1 deletion user/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ in {
inherit
(pkgs)
ttyper
librewolf
mpv
tdesktop
ytmdl
Expand Down
16 changes: 8 additions & 8 deletions user/theme/_sources/generated.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"theme": {
"wallpapers": {
"cargoLocks": null,
"date": "2024-06-16",
"date": "2025-01-08",
"extract": null,
"name": "theme",
"name": "wallpapers",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "andersevenrud",
"repo": "nordic.nvim",
"rev": "c88388b2a5f6e621df2718c316b856d4971bb89d",
"sha256": "sha256-ipmt0xD2zTfoh8fyYG4+09uVL2ef98FE9VwWpWJtQks=",
"owner": "sioodmy",
"repo": "wallpapers",
"rev": "762c067796b6a4fddc6b8d051e70844d1701f1b7",
"sha256": "sha256-Er+ZnJIcRSYmsDkFyttJN6KdDxn4PVgfrkoXgrHzFyA=",
"type": "github"
},
"version": "c88388b2a5f6e621df2718c316b856d4971bb89d"
"version": "762c067796b6a4fddc6b8d051e70844d1701f1b7"
}
}
22 changes: 9 additions & 13 deletions user/theme/_sources/generated.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl, fetchFromGitHub, dockerTools }:
{
fetchgit,
fetchurl,
fetchFromGitHub,
dockerTools,
}: {
theme = {
pname = "theme";
version = "c88388b2a5f6e621df2718c316b856d4971bb89d";
wallpapers = {
pname = "wallpapers";
version = "762c067796b6a4fddc6b8d051e70844d1701f1b7";
src = fetchFromGitHub {
owner = "andersevenrud";
repo = "nordic.nvim";
rev = "c88388b2a5f6e621df2718c316b856d4971bb89d";
owner = "sioodmy";
repo = "wallpapers";
rev = "762c067796b6a4fddc6b8d051e70844d1701f1b7";
fetchSubmodules = false;
sha256 = "sha256-ipmt0xD2zTfoh8fyYG4+09uVL2ef98FE9VwWpWJtQks=";
sha256 = "sha256-Er+ZnJIcRSYmsDkFyttJN6KdDxn4PVgfrkoXgrHzFyA=";
};
date = "2024-06-16";
date = "2025-01-08";
};
}
7 changes: 5 additions & 2 deletions user/theme/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgs: rec {
opacity = 0.88;
opacity = 1.0;
background = "2e3440";

text = "d8dee9";
Expand Down Expand Up @@ -45,7 +45,10 @@ pkgs: rec {
base0F = "B48EAD";

accent = regular.blue;
wallpaper = ./wall.png;
wallpaper = let
path = "nord/2.png";
wallpapers = (pkgs.callPackages ./_sources/generated.nix {}).wallpapers;
in "${wallpapers.src}/${path}";

bat = "Nord";

Expand Down
6 changes: 3 additions & 3 deletions user/theme/nvfetcher.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[theme]
src.git = "https://github.com/andersevenrud/nordic.nvim"
fetch.github = "andersevenrud/nordic.nvim"
[wallpapers]
src.git = "https://github.com/sioodmy/wallpapers"
fetch.github = "sioodmy/wallpapers"
Binary file removed user/theme/wall.png
Binary file not shown.
2 changes: 1 addition & 1 deletion user/wrapped/hypr/configs/Hyprland.nix
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ in {
"${mod}, P, pseudo,"
"${mod} ALT, ,resizeactive,"

"${mod}, Return, exec, foot"
"${mod}, Return, exec, foot -e tmux"
"${mod} SHIFT, L, exec, hyprlock"

"${mod}, h, movefocus, l"
Expand Down

0 comments on commit 2e42671

Please sign in to comment.