Compare commits
4 Commits
c00f818acb
...
e41f726b28
Author | SHA1 | Date | |
---|---|---|---|
e41f726b28 | |||
c99d512d7d | |||
552f0439dc | |||
21312168b3 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
# Ignore build outputs from performing a nix-build or `nix build` command
|
||||
result
|
||||
result-*
|
||||
.direnv
|
||||
|
24
flake.lock
generated
24
flake.lock
generated
@ -279,6 +279,29 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixfiles-assets": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": [
|
||||
"systems"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1710743555,
|
||||
"narHash": "sha256-e8iXy4hCLYegNTeyB/GB8hj+gj1wPD+b+XOsEcdfEJY=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "4ee66c3036eda78fe0ddada0e289a4f672ac4f57",
|
||||
"revCount": 1,
|
||||
"type": "git",
|
||||
"url": "https://gitea.protogen.io/nullbite/nixfiles-assets"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://gitea.protogen.io/nullbite/nixfiles-assets"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1709961763,
|
||||
@ -351,6 +374,7 @@
|
||||
"hyprwm-contrib": "hyprwm-contrib",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nix-wsl": "nix-wsl",
|
||||
"nixfiles-assets": "nixfiles-assets",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||
"pkg-android-tools": "pkg-android-tools",
|
||||
|
19
flake.nix
19
flake.nix
@ -46,6 +46,14 @@
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nixfiles-assets = {
|
||||
# using self-hosted gitea mirror because of GitHub LFS bandwidth limit (even though i'd probably never hit it)
|
||||
type = "git";
|
||||
url = "https://gitea.protogen.io/nullbite/nixfiles-assets";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.systems.follows = "systems";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
||||
@ -72,6 +80,7 @@
|
||||
|
||||
inputs.hyprwm-contrib.overlays.default
|
||||
inputs.rust-overlay.overlays.default
|
||||
inputs.nixfiles-assets.overlays.default
|
||||
];
|
||||
|
||||
### Configuration
|
||||
@ -200,6 +209,16 @@
|
||||
# for repl debugging via :lf .
|
||||
inherit inputs vars;
|
||||
|
||||
devShells = eachSystem (system: let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
nix-update
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
# nix flake modules are meant to be portable so we cannot rely on
|
||||
# (extraS|s)pecialArgs to pass variables
|
||||
nixosModules = (import ./modules/nixos) moduleInputs;
|
||||
|
@ -213,7 +213,7 @@ in
|
||||
"$mod, O, togglesplit," # dwindle"
|
||||
|
||||
"$mod, f, fullscreen"
|
||||
"$mod CONTROL, f, fakefullscreen"
|
||||
"$mod SHIFT, f, fakefullscreen"
|
||||
|
||||
# Move focus with mod + arrow keys
|
||||
"$mod, left, movefocus, l"
|
||||
|
@ -11,4 +11,5 @@ in
|
||||
google-fonts = callPackage ./google-fonts { };
|
||||
wm-helpers = callPackage ./wm-helpers { };
|
||||
atool = callPackage ./atool-wrapped { };
|
||||
nixfiles-assets = callPackage ./nixfiles-assets { };
|
||||
}
|
||||
|
25
pkgs/nixfiles-assets/default.nix
Normal file
25
pkgs/nixfiles-assets/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ lib, stdenvNoCC, fetchFromGitea }:
|
||||
let
|
||||
src = fetchFromGitea {
|
||||
domain = "gitea.protogen.io";
|
||||
owner = "nullbite";
|
||||
repo = "nixfiles-assets";
|
||||
rev = "4ee66c3036";
|
||||
hash = "sha256-e8iXy4hCLYegNTeyB/GB8hj+gj1wPD+b+XOsEcdfEJY=";
|
||||
forceFetchGit = true;
|
||||
fetchLFS = true;
|
||||
};
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "nixfiles-assets";
|
||||
version = src.rev;
|
||||
inherit src;
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
cd $src
|
||||
pwd
|
||||
ls
|
||||
mkdir -p $out/share/
|
||||
cp -a wallpapers $out/share/
|
||||
'';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user