306 current 2025-01-25 22:09:05 25.05.20241217.d3c42f1 6.6.66 *

This commit is contained in:
2025-01-25 23:28:25 -05:00
parent b119528110
commit 1405bb6d3f
3 changed files with 39 additions and 35 deletions

View File

@@ -48,14 +48,30 @@
# Equivalent to inputs'.nixpkgs.legacyPackages.hello; # Equivalent to inputs'.nixpkgs.legacyPackages.hello;
# packages.default = pkgs.hello; # packages.default = pkgs.hello;
# formatter = pkgs.nixfmt-rfc-style; # formatter = pkgs.nixfmt-rfc-style;
# pkgs = import nixpkgs {
formatter = pkgs.alejandra;
# pkgs = import inputs.nixpkgs {
# inherit system; # inherit system;
# config.allowUnfree = true; # config.allowUnfree = true;
# }; # };
# lib = inputs.haumea.lib.load {
formatter = pkgs.alejandra; # src = ./scripts;
# inputs = {
# inherit nixpkgs;
# };
# };
}; };
flake = { flake = {
module = {pkgs, ...} @ args:
haumea.lib.load {
src = ./scripts;
inputs =
args
// {
inherit inputs;
};
};
# The usual flake attributes can be defined here, including system- # The usual flake attributes can be defined here, including system-
# agnostic ones like nixosModule and system-enumerating ones, although # agnostic ones like nixosModule and system-enumerating ones, although
# those are more easily expressed in perSystem. # those are more easily expressed in perSystem.
@@ -81,7 +97,14 @@
# home.packages = with pkgs; [xrandr procps polybar bspwm sxhkd polybar-pulseaudio-control bluez]; # home.packages = with pkgs; [xrandr procps polybar bspwm sxhkd polybar-pulseaudio-control bluez];
}; };
specialArgs = {inherit inputs;};
# lib = inputs.haumea.lib.load {
# src = ./scripts;
# inputs = {
# inherit (nixpkgs) lib;
# };
# };
# extraSpecialArgs = {inherit inputs;}; # extraSpecialArgs = {inherit inputs;};
modules = [ modules = [
./configuration.nix ./configuration.nix
@@ -90,7 +113,10 @@
# agenix.nixosModules.default # agenix.nixosModules.default
# home manager # home manager
# inputs.haumea.nixosModules # inputs.haumea.nixosModules
# self.h-lib # (haumea.lib.load {
# src = ./scripts;
# inputs = {inherit pkgs;};
# })
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;

View File

@@ -1,16 +1,10 @@
# scripts.nix
{pkgs, ...}: { {pkgs, ...}: {
home.packages = with pkgs; [ tb = pkgs.writeShellApplication {
(writeShellApplication { name = "termbin";
name = "termbin"; runtimeInputs = with pkgs; [netcat];
runtimeInputs = with pkgs; [ text = ''
netcat file=$1
]; cat "$file" | nc termbin.com 9999
'';
text = '' };
file=$1
cat "$1" | nc termbin.com 9999
'';
})
];
} }

View File

@@ -1,16 +0,0 @@
# scripts.nix
{pkgs, ...}: {
home.packages = with pkgs; [
(writeShellApplication {
name = "termbin";
runtimeInputs = with pkgs; [
netcat
];
text = ''
file=$1
cat "$1" | nc termbin.com 9999
'';
})
];
}