Compare commits

...

4 Commits

Author SHA1 Message Date
e41f726b28
nixfiles-assets: go back to the flake method
it works now???
2024-03-18 04:42:28 -04:00
c99d512d7d
Add nixfiles-assets
Can't do it as a flake because flakes don't support LFS
2024-03-18 04:42:28 -04:00
552f0439dc
Add dev shell with nix-update 2024-03-18 04:42:17 -04:00
21312168b3
Hyprland: change fakefulscreen bind 2024-03-18 02:03:09 -04:00
7 changed files with 72 additions and 1 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
# Ignore build outputs from performing a nix-build or `nix build` command
result
result-*
.direnv

24
flake.lock generated
View File

@ -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",

View File

@ -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;

View File

@ -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"

View File

@ -11,4 +11,5 @@ in
google-fonts = callPackage ./google-fonts { };
wm-helpers = callPackage ./wm-helpers { };
atool = callPackage ./atool-wrapped { };
nixfiles-assets = callPackage ./nixfiles-assets { };
}

View 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/
'';
}