flake: add wallpapers repo as input, replace fetchGit calls
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-09-06 17:31:20 -04:00
parent eeaa300211
commit 9bdfcf8d74
9 changed files with 55 additions and 59 deletions

View file

@ -579,7 +579,8 @@
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur",
"stylix": "stylix"
"stylix": "stylix",
"wallpapers": "wallpapers"
}
},
"rust-overlay": {
@ -698,6 +699,22 @@
"repo": "default",
"type": "github"
}
},
"wallpapers": {
"flake": false,
"locked": {
"lastModified": 1725258570,
"narHash": "sha256-0do/7t7rVSYor+3M48n6nSAq56DyKCPPRn4wDcLRMQk=",
"owner": "alyraffauf",
"repo": "wallpapers",
"rev": "a02d94f99498c93d4ee9144c4e843470024f2bc9",
"type": "github"
},
"original": {
"owner": "alyraffauf",
"repo": "wallpapers",
"type": "github"
}
}
},
"root": "root",

View file

@ -41,6 +41,11 @@
inputs.nixpkgs.follows = "nixpkgs";
url = "github:danth/stylix";
};
wallpapers = {
url = "github:alyraffauf/wallpapers";
flake = false; # This is important to specify that it's a non-flake
};
};
nixConfig = {
@ -89,7 +94,6 @@
nh
ruby
sbctl
update-nix-fetchgit
])
++ [
self.formatter.${pkgs.system}

View file

@ -2,6 +2,7 @@
config,
lib,
osConfig,
self,
...
}: {
imports = [
@ -43,11 +44,7 @@
) "file://${config.home.homeDirectory}/sync";
xdg = {
dataFile."backgrounds".source = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "c7d61966e339dd7efdda5ff176b91778086ccb73";
ref = "master";
};
dataFile."backgrounds".source = self.inputs.wallpapers;
userDirs = {
enable = true;

View file

@ -1,16 +1,12 @@
{pkgs, ...}: {
{
pkgs,
self,
...
}: {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/default-dark.yaml";
image = let
wallpapers = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "c7d61966e339dd7efdda5ff176b91778086ccb73";
ref = "master";
};
in "${wallpapers}/wallhaven-6d66dl.jpg";
image = "${self.inputs.wallpapers}/wallhaven-6d66dl.jpg";
imageScalingMode = "fill";
polarity = "dark";

View file

@ -1,16 +1,12 @@
{pkgs, ...}: {
{
pkgs,
self,
...
}: {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
image = let
wallpapers = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "c7d61966e339dd7efdda5ff176b91778086ccb73";
ref = "master";
};
in "${wallpapers}/wallhaven-mp886k.jpg";
image = "${self.inputs.wallpapers}/wallhaven-mp886k.jpg";
imageScalingMode = "fill";
polarity = "dark";

View file

@ -1,16 +1,12 @@
{pkgs, ...}: {
{
pkgs,
self,
...
}: {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
image = let
wallpapers = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "c7d61966e339dd7efdda5ff176b91778086ccb73";
ref = "master";
};
in "${wallpapers}/wallhaven-mp886k.jpg";
image = "${self.inputs.wallpapers}/wallhaven-mp886k.jpg";
imageScalingMode = "fill";
polarity = "dark";

View file

@ -1,16 +1,12 @@
{pkgs, ...}: {
{
pkgs,
self,
...
}: {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
image = let
wallpapers = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "c7d61966e339dd7efdda5ff176b91778086ccb73";
ref = "master";
};
in "${wallpapers}/wallhaven-jxp18w.jpg";
image = "${self.inputs.wallpapers}/wallhaven-jxp18w.jpg";
imageScalingMode = "fill";
polarity = "dark";

View file

@ -1,16 +1,12 @@
{pkgs, ...}: {
{
pkgs,
self,
...
}: {
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-light-hard.yaml";
image = let
wallpapers = builtins.fetchGit {
url = "https://github.com/alyraffauf/wallpapers.git";
rev = "c7d61966e339dd7efdda5ff176b91778086ccb73";
ref = "master";
};
in "${wallpapers}/wallhaven-mp886k.jpg";
image = "${self.inputs.wallpapers}/wallhaven-mp886k.jpg";
imageScalingMode = "fill";
polarity = "light";

View file

@ -1,2 +0,0 @@
#!/bin/bash
nix run nixpkgs#update-nix-fetchgit -- homeManagerModules/desktop/default.nix hosts/fallarbor/stylix.nix hosts/lavaridge/stylix.nix hosts/mauville/stylix.nix hosts/petalburg/stylix.nix hosts/rustboro/stylix.nix