create scripts folder

This commit is contained in:
Leonardo Eugênio 2022-08-07 22:44:21 -03:00
parent cf841d62ea
commit 1018c9f85f
7 changed files with 11 additions and 7 deletions

View file

@ -41,11 +41,8 @@
overlay-unstable overlay-unstable
nur.overlay nur.overlay
(_: old-pkgs: { (_: old-pkgs: {
uservars = import ./user/variables.nix;
dhist = dhist.packages.${system}.dhist; dhist = dhist.packages.${system}.dhist;
bmenu = import ./bmenu.nix { inherit config pkgs lib; };
_diffr = import ./diffr.nix { inherit config pkgs lib; };
kak-pager = import ./kak-pager.nix { inherit config pkgs lib; };
terminal = import ./terminal.nix { inherit config pkgs lib; };
alacritty = (old-pkgs.alacritty.overrideAttrs alacritty = (old-pkgs.alacritty.overrideAttrs
(old-alacritty: rec { (old-alacritty: rec {
src = alacritty-sixel; src = alacritty-sixel;
@ -59,10 +56,11 @@
ranger = (old-pkgs.ranger.overridePythonAttrs (old-ranger: rec { ranger = (old-pkgs.ranger.overridePythonAttrs (old-ranger: rec {
src = ranger-sixel; src = ranger-sixel;
checkInputs = [ ]; checkInputs = [ ];
propagatedBuildInputs = with pkgs.python3Packages; propagatedBuildInputs = with old-pkgs.python3Packages;
old-ranger.propagatedBuildInputs ++ [ astroid pylint pytest ]; old-ranger.propagatedBuildInputs ++ [ astroid pylint pytest ];
})); }));
}) })
(import ./scripts { inherit config pkgs lib; })
]; ];
}) })
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View file

@ -1,5 +1,5 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let inherit (import ./user/variables.nix) key theme color accent font; let inherit (pkgs.uservars) key theme color accent font;
in pkgs.writeScriptBin "bmenu" '' in pkgs.writeScriptBin "bmenu" ''
#!${pkgs.fish}/bin/fish #!${pkgs.fish}/bin/fish

6
scripts/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ config, lib, ... }: (_: pkgs: {
bmenu = import ./bmenu.nix { inherit config pkgs lib; };
_diffr = import ./diffr.nix { inherit config pkgs lib; };
kak-pager = import ./kak-pager.nix { inherit config pkgs lib; };
terminal = import ./terminal.nix { inherit config pkgs lib; };
})

2
switch
View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sudo nixos-rebuild switch --flake .# sudo nixos-rebuild switch --flake .# $@