yep, more dotfiles

feat: dont shadow nixpkgs, use lpkgs

Changed files
+25 -74
home-manager
lib
flake
modules
nixos
nixos
profiles
overlays
pkgs
+4 -1
home-manager/modules/git.nix
···
};
};
-
home.packages = with pkgs; [ git-leave git-along radicle-node ];
+
home.packages = with pkgs; [
+
lpkgs.git-leave
+
radicle-node
+
];
programs.gh.enable = true;
+3 -2
home-manager/modules/helix.nix
···
{ self
, config
, pkgs
+
, lpkgs
, upkgs
, lib
, ...
···
config = {
programs.helix = {
enable = true;
-
package = pkgs.helix;
+
package = lpkgs.helix;
defaultEditor = true;
settings = {
···
vscode-langservers-extracted
upkgs.vue-language-server
yaml-language-server
-
wakatime-lsp
+
lpkgs.wakatime-lsp
];
languages = {
+2 -1
home-manager/modules/shell.nix
···
{ lib
, pkgs
+
, lpkgs
, isDarwin
, ...
}:
···
# Quickly get outta here to test something
cdtmp = ''
-
set -l name $argv[1] (${getExe pkgs.names})
+
set -l name $argv[1] (${getExe lpkgs.names})
set -l dir /tmp/$name[1]
mkdir $dir
+6 -3
home-manager/modules/tools.nix
···
-
{ pkgs, ... }:
+
{ pkgs
+
, lpkgs
+
, ...
+
}:
{
config = {
···
btop
glow
gping
-
otree
+
lpkgs.otree
thokr
# CLIs
···
speedtest-go
upkgs.srgn
sshfs
-
sweep
+
lpkgs.sweep
tealdeer
termimage
tokei
+1 -2
home-manager/profiles/desktop.nix
···
, llib
, config
, pkgs
-
, upkgs
, isDarwin
# Provides the NixOS configuration if HM was loaded through the NixOS module
, osConfig ? null
···
hunspellDicts.en_GB-large
# TUIs
-
asak
+
lpkgs.asak
# CLIs
wf-recorder
+2 -1
lib/flake/default.nix
···
let
inherit (self.inputs) nixpkgs-unstable nix-darwin;
-
inherit (self.flake-lib) specialModuleArgs;
inherit (nix-darwin.lib) darwinSystem;
in
···
# - `self`: flake
# - `llib`: local flake library
+
# - `lpkgs`: local packages set
# - `upkgs`: unstable nixpkgs set
# - `isDarwin`: indicates if system is darwin
specialModuleArgs = pkgs: {
inherit self;
llib = import ../. pkgs;
+
lpkgs = import ../../pkgs pkgs;
upkgs = import nixpkgs-unstable { inherit (pkgs) system config; };
isDarwin = pkgs.stdenv.isDarwin;
};
+5 -1
modules/nixos/geoclue2.nix
···
#
# I spent way too much time getting this to work with a submodule.
-
{ config, lib, pkgs, ... }:
+
{ config
+
, lib
+
, pkgs
+
, ...
+
}:
with lib;
+1 -2
nixos/profiles/laptop.nix
···
programs.fish.enable = true;
services.udev.packages = with pkgs; [
-
arduino-udev-rules
numworks-udev-rules
-
probe-rs-udev-rules
+
lpkgs.probe-rs-udev-rules
];
users.groups.plugdev.name = "plugdev";
+1 -4
overlays/default.nix
···
in
rec {
# Bundles all overlays, order matters here
-
all = composeManyExtensions [ bringSpecialArgs additions patches ];
+
all = composeManyExtensions [ bringSpecialArgs patches ];
# Bring `self`, `llib` and `upkgs`
bringSpecialArgs = final: prev: self.flake-lib.specialModuleArgs final;
-
-
# Bring our custom packages from the `pkgs` directory
-
additions = final: prev: import ../pkgs prev;
# Custom derivation patches that temporarily fix a package
patches = import ./patches.nix;
-28
pkgs/arduino-udev-rules.nix
···
-
{ lib
-
, stdenv
-
, writeText
-
}:
-
-
stdenv.mkDerivation rec {
-
pname = "arduino-udev-rules";
-
version = "0.0.0";
-
-
src = writeText pname ''
-
# Arduino Nano
-
ATTRS{idVendor}=="2341", ATTRS{idProduct}=="8037", MODE="0666", TAG+="uaccess"
-
'';
-
-
dontUnpack = true;
-
-
installPhase = ''
-
install -Dm 644 "${src}" "$out/lib/udev/rules.d/70-arduino.rules"
-
'';
-
-
meta = with lib; {
-
description = "UDev rules for Arduino boards";
-
homepage = "https://www.arduino.cc/";
-
maintainers = [ "mrnossiom" ];
-
platforms = platforms.linux;
-
};
-
}
-
-2
pkgs/default.nix
···
inherit (self.inputs) agenix git-leave helix radicle wakatime-lsp;
in
{
-
arduino-udev-rules = pkgs.callPackage ./arduino-udev-rules.nix { };
asak = pkgs.callPackage ./asak.nix { };
find-unicode = pkgs.callPackage ./find-unicode.nix { };
-
git-along = pkgs.callPackage ./git-along.nix { };
# lazyjj = pkgs.callPackage ./lazyjj.nix { };
names = pkgs.callPackage ./names.nix { };
otree = pkgs.callPackage ./otree.nix { };
-27
pkgs/git-along.nix
···
-
{ lib
-
-
, fetchFromGitHub
-
, buildGoModule
-
}:
-
-
buildGoModule rec {
-
pname = "git-along";
-
version = "0.0.0";
-
-
src = fetchFromGitHub {
-
# owner = "nyarly";
-
owner = "mrnossiom";
-
repo = pname;
-
rev = "v${version}";
-
sha256 = "sha256-2pjaA0llShG8dxILWCvP45VgLFWhFbinAiNiOLM7ovg=";
-
};
-
-
vendorHash = null;
-
-
meta = with lib; {
-
description = "Manage project configuration and environment in side branches";
-
homepage = "https://github.com/nyarly/git-along";
-
maintainers = [ "mrnossiom" ];
-
mainProgram = "git-along";
-
};
-
}