this repo has no description

Brain dump

hauleth.dev 6ed6fbb5 a37c5dee

verified
-13
flake.nix
···
(import ./hosts/supadupa.nix {inherit inputs;})
.system;
-
homeConfigurations."hauleth" =
-
(import ./users/hauleth.nix {inherit inputs;})
-
.home;
-
templates = {
elixir = {
path = ./templates/elixir;
···
// {
default = pkgs.writeScriptBin "activate" ''
#!/bin/sh
-
echo ========= System =========
${pkgs.lib.getExe self'.packages.system} switch
-
echo
-
echo ========= Home =========
-
${pkgs.lib.getExe self'.packages.home} switch
-
'';
-
-
home = pkgs.writeScriptBin "activate-home" ''
-
#!/bin/sh
-
exec ${pkgs.lib.getExe inputs'.home-manager.packages.default} --flake "${self}" "$@"
'';
system = let
+6 -2
hosts/modules/builders.nix
···
-
{pkgs, inputs, ...}: let
+
{
+
pkgs,
+
inputs,
+
...
+
}: let
pkgs-stable = inputs.darwin-stable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
nix.linux-builder = {
···
config = {
virtualisation = {
darwin-builder = {
-
# diskSize = 20 * 1024;
+
# diskSize = 20 * 1024;
memorySize = 4 * 1024;
};
cores = 4;
+7
hosts/niuniobook.nix
···
}
inputs.lix-module.nixosModules.default
inputs.home-manager.darwinModules.home-manager
+
{
+
users.users.hauleth.home = "/Users/hauleth";
+
home-manager.useGlobalPkgs = true;
+
home-manager.useUserPackages = true;
+
home-manager.users.hauleth = import ../users/hauleth.nix;
+
home-manager.extraSpecialArgs = {inherit inputs;};
+
}
];
inherit inputs;
+1 -1
lib.nix
···
in
builtins.filter notComment (lib.strings.splitString "\n" content);
-
dontCheck = drv: drv.overrideAttrs { doCheck = false; };
+
dontCheck = drv: drv.overrideAttrs {doCheck = false;};
in {
inherit readFileWithComments dontCheck;
}
+2 -3
modules/curl.nix
···
target = ".curlrc";
text = ''
-
silent=true
-
-
netrc-optional
+
netrc
+
netrc-file = "/User/hauleth/.netrc.fix"
'';
};
}
+5 -1
modules/darwin.nix
···
-
{pkgs, inputs, ...}: {
+
{
+
pkgs,
+
inputs,
+
...
+
}: {
nix.settings.extra-sandbox-paths = [
"/System/Library/Frameworks"
"/System/Library/PrivateFrameworks"
+5 -1
modules/ghostty.nix
···
-
{config, lib, ...}: {
+
{
+
config,
+
lib,
+
...
+
}: {
programs.ghostty = {
enable = true;
package = null; # Set explicitly to null, as it is managed externally
-1
modules/nvim.nix
···
lua << EOF
vim.g.lsp_paths = {
['lexical'] = "${pkgs.lexical}/bin/lexical",
-
['nixd'] = "${pkgs.nixd}/bin/nixd",
['typos_lsp'] = "${pkgs.typos-lsp}/bin/typos-lsp"
}
package.path = package.path .. ";${pkgs.luajitPackages.fennel}/share/lua/5.1/?.lua"
+4 -4
modules/nvim/fnl/langclient.fnl
···
(setup :zls {})
-
(setup :nixd {
-
:autostart true
-
:cmd [vim.g.lsp_paths.nixd]
-
})
+
;(setup :nixd {
+
; :autostart true
+
; :cmd [vim.g.lsp_paths.nixd]
+
; })
(setup :typos_lsp {
:autostart true
+24
overlays/fix-curl.nix
···
+
# Hot fix for curl in nix breaking with netrc
+
# https://github.com/NixOS/nixpkgs/pull/356133
+
final: prev: let
+
patched-curl = prev.curl.overrideAttrs (oldAttrs: {
+
patches =
+
(oldAttrs.patches or [])
+
++ [
+
# https://github.com/curl/curl/issues/15496
+
(prev.fetchpatch {
+
url = "https://github.com/curl/curl/commit/f5c616930b5cf148b1b2632da4f5963ff48bdf88.patch";
+
hash = "sha256-FlsAlBxAzCmHBSP+opJVrZG8XxWJ+VP2ro4RAl3g0pQ=";
+
})
+
# https://github.com/curl/curl/issues/15513
+
(prev.fetchpatch {
+
url = "https://github.com/curl/curl/commit/0cdde0fdfbeb8c35420f6d03fa4b77ed73497694.patch";
+
hash = "sha256-WP0zahMQIx9PtLmIDyNSJICeIJvN60VzJGN2IhiEYv0=";
+
})
+
];
+
});
+
in {
+
nix = prev.nix.override (old: {
+
curl = patched-curl;
+
});
+
}
+17 -33
users/hauleth.nix
···
{inputs, ...}: {
-
username = "hauleth";
-
-
home = inputs.home-manager.lib.homeManagerConfiguration {
-
pkgs = import inputs.nixpkgs {
-
system = "aarch64-darwin";
-
};
-
-
extraSpecialArgs = {
-
inherit inputs;
-
};
-
-
modules = [
-
{
-
home.username = "hauleth";
-
home.homeDirectory = "/Users/hauleth/";
-
}
-
inputs.ghostty.homeModules.default
-
../modules/fish.nix
-
../modules/direnv.nix
-
../modules/git.nix
-
../modules/plan.nix
-
../modules/ctags.nix
-
../modules/curl.nix
-
../modules/tools.nix
-
../modules/swiftbar.nix
-
../modules/email.nix
-
../modules/pijul.nix
-
../modules/nvim.nix
-
../modules/ghostty.nix
-
./modules/dircolors.nix
-
{home.stateVersion = "24.11";}
-
];
-
};
+
imports = [
+
inputs.ghostty.homeModules.default
+
../modules/fish.nix
+
../modules/direnv.nix
+
../modules/git.nix
+
../modules/plan.nix
+
../modules/ctags.nix
+
../modules/curl.nix
+
../modules/tools.nix
+
../modules/swiftbar.nix
+
../modules/email.nix
+
../modules/pijul.nix
+
../modules/nvim.nix
+
../modules/ghostty.nix
+
./modules/dircolors.nix
+
{home.stateVersion = "24.11";}
+
];
}