this repo has no description

ft: add Supadupa host

hauleth.dev a1eaa7d9 8e9be6a1

verified
Changed files
+84 -39
hosts
modules
vim
.config
nvim
after
queries
haskell
fnl
plugin
spell
+1 -1
dev_shells.nix
···
];
};
-
elixir = with beam.packages.erlang;
mkShell {
packages =
[
···
];
};
+
elixir = with beam.packages.erlang_27;
mkShell {
packages =
[
+4
flake.nix
···
(import ./hosts/niuniobook.nix {inherit inputs;})
.system;
homeConfigurations."hauleth" =
(import ./users/hauleth.nix {inherit inputs;})
.home;
···
(import ./hosts/niuniobook.nix {inherit inputs;})
.system;
+
darwinConfigurations."Supadupa" =
+
(import ./hosts/supadupa.nix {inherit inputs;})
+
.system;
+
homeConfigurations."hauleth" =
(import ./users/hauleth.nix {inherit inputs;})
.home;
+1 -1
hosts/modules/builders.nix
···
config = {
virtualisation = {
darwin-builder = {
-
diskSize = 20 * 1024;
memorySize = 4 * 1024;
};
cores = 4;
···
config = {
virtualisation = {
darwin-builder = {
+
# diskSize = 20 * 1024;
memorySize = 4 * 1024;
};
cores = 4;
+1
hosts/niuniobook.nix
···
documentation.enable = true;
}
inputs.lix-module.nixosModules.default
];
inherit inputs;
···
documentation.enable = true;
}
inputs.lix-module.nixosModules.default
+
inputs.home-manager.darwinModules.home-manager
];
inherit inputs;
+31
hosts/supadupa.nix
···
···
+
{inputs, ...}: {
+
type = "darwin";
+
+
hostname = "Supadupa";
+
+
system = inputs.darwin.lib.darwinSystem {
+
system = "aarch64-darwin";
+
modules = [
+
{
+
# You should generally set this to the total number of logical cores in your system.
+
# $ sysctl -n hw.ncpu
+
nix.settings.max-jobs = 8;
+
nix.settings.cores = 8;
+
}
+
../modules/common.nix
+
../modules/darwin.nix
+
../modules/fonts.nix
+
./modules/environment.nix
+
# ./modules/builders.nix
+
../modules/nvim.nix
+
{
+
system.stateVersion = 4;
+
documentation.enable = true;
+
}
+
inputs.lix-module.nixosModules.default
+
inputs.home-manager.darwinModules.home-manager
+
];
+
+
inherit inputs;
+
};
+
}
-1
modules/common.nix
···
];
nix.registry = {
-
darwin.flake = inputs.darwin;
dotfiles.flake = inputs.self;
flake-parts.flake = inputs.flake-parts;
};
···
];
nix.registry = {
dotfiles.flake = inputs.self;
flake-parts.flake = inputs.flake-parts;
};
+3 -1
modules/darwin.nix
···
-
{pkgs, ...}: {
nix.settings.extra-sandbox-paths = [
"/System/Library/Frameworks"
"/System/Library/PrivateFrameworks"
···
localhost = "127.0.0.1";
};
};
# Enable TouchID PAM on macOS
security.pam.enableSudoTouchIdAuth = true;
···
+
{pkgs, inputs, ...}: {
nix.settings.extra-sandbox-paths = [
"/System/Library/Frameworks"
"/System/Library/PrivateFrameworks"
···
localhost = "127.0.0.1";
};
};
+
+
nix.registry.darwin.flake = inputs.darwin;
# Enable TouchID PAM on macOS
security.pam.enableSudoTouchIdAuth = true;
+3 -1
modules/fish.nix
···
ERL_FLAGS = "-kernel shell_history enabled";
};
programs.fish = {
enable = true;
···
interactiveShellInit = ''
# use fish in nix run and nix-shell
-
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
set -g DEFAULT_USER ${config.home.username}
···
ERL_FLAGS = "-kernel shell_history enabled";
};
+
programs.zsh.enable = true;
+
programs.fish = {
enable = true;
···
interactiveShellInit = ''
# use fish in nix run and nix-shell
+
${pkgs.any-nix-shell}/bin/any-nix-shell fish | source
set -g DEFAULT_USER ${config.home.username}
+1 -1
modules/git.nix
···
home.packages = [
pkgs.git-absorb
-
(inputs.self.lib.dontCheck pkgs.git-branchless)
pkgs.git-gone
pkgs.git-cliff
pkgs.git-revise
···
home.packages = [
pkgs.git-absorb
+
(inputs.self.lib.dontCheck inputs.git-branchless.packages.${pkgs.stdenv.hostPlatform.system}.git-branchless)
pkgs.git-gone
pkgs.git-cliff
pkgs.git-revise
+1
modules/tools.nix
···
pkgs.senpai
pkgs.timg
pkgs.typos
];
}
···
pkgs.senpai
pkgs.timg
pkgs.typos
+
pkgs.pngpaste
];
}
+2 -2
vim/.config/nvim/after/queries/haskell/highlights.scm
···
("\\" @operator (#set! conceal "λ"))
("forall" @repeat (#set! conceal "∀"))
-
((where) @keyword (#set! conceal "∵"))
-
((exp_infix (variable) @operator) (#eq? @operator "in") (#set! conceal "∈"))
(((operator) @operator) (#eq? @operator ".") (#set! conceal "∘"))
···
("\\" @operator (#set! conceal "λ"))
("forall" @repeat (#set! conceal "∀"))
+
;((where) @keyword (#set! conceal "∵"))
+
;((exp_infix (variable) @operator) (#eq? @operator "in") (#set! conceal "∈"))
(((operator) @operator) (#eq? @operator ".") (#set! conceal "∘"))
-1
vim/.config/nvim/fnl/plugins.fnl
···
(pkg :AndrewRadev/splitjoin.vim
{:keys [:gS :gJ]})
(pkg :hauleth/sad.vim)
-
(pkg :tommcdo/vim-exchange)
; Task running
(pkg :hauleth/asyncdo.vim)
···
(pkg :AndrewRadev/splitjoin.vim
{:keys [:gS :gJ]})
(pkg :hauleth/sad.vim)
; Task running
(pkg :hauleth/asyncdo.vim)
+33 -28
vim/.config/nvim/init.fnl
···
(do ; Clap
(map :n :<Space><Space> #(picker.find-files)))
-
(do ; Frequently used unimpaired mappings
-
(let [unimpaired (fn [char left right]
-
(map :n (.. "[" char) left)
-
(map :n (.. "]" char) right))]
-
(unimpaired :w :gT :gt)
-
(unimpaired :q ":cprev" ":cnext")
-
(unimpaired :Q ":cpfile" ":cnfile")
-
(unimpaired :l ":lprev" ":lnext")
-
(unimpaired :L ":lpfile" ":lnfile")))
-
(do ; Additional "Close" commands
(map :n :ZS ":wa")
(map :n :ZA ":qa")
···
(do ; Quickly disable highlight
(map :n "<Space>," ":nohlsearch"))
(do ; Terminal mappings
; (map :n :<C-q>c ":term")
(map :n :<C-q>s ":Start")
···
:table config)]
(f opts)
lib))]
-
(setup :mini.starter
-
(fn [starter]
-
{:items [(starter.sections.sessions 10 true)
-
(starter.sections.builtin_actions)]}))
(setup :mini.sessions
(fn [sessions]
(let [complete (fn [with-current?]
···
(defcommand SRead {:nargs 1 :bang true :complete (complete false)}
(print (sessions.read (tostring args) {:force bang}))))
{:directory (.. (fun.stdpath :data) "/site/sessions/")}))
-
(setup :mini.align
-
{:mappings {:start :gl
-
:start_with_preview :gL}})
-
(setup :mini.bufremove
-
(fn [bufremove]
-
(defcommand Bd (bufremove.delete))
-
(defcommand BClean
-
(->> (fun.getbufinfo {:buflisted true})
-
(vim.tbl_filter #(= (next $1.windows) nil))
-
(#(each [_ v (ipairs $1)]
-
(bufremove.delete v.bufnr)))))
-
{:set_vim_settings false}))
-
(setup :mini.ai)
-
(setup :mini.jump {:mappings {:repeat_jump ":"}})
(setup :mini.surround
{:mappings {:add :gsa
:delete :gsd
···
(do ; Clap
(map :n :<Space><Space> #(picker.find-files)))
(do ; Additional "Close" commands
(map :n :ZS ":wa")
(map :n :ZA ":qa")
···
(do ; Quickly disable highlight
(map :n "<Space>," ":nohlsearch"))
+
(do ; Frequently used unimpaired mappings
+
(let [unimpaired (fn [char left right]
+
(map :n (.. "[" char) left)
+
(map :n (.. "]" char) right))]
+
(unimpaired :w :gT :gt)
+
(unimpaired :q ":cprev" ":cnext")
+
(unimpaired :Q ":cpfile" ":cnfile")
+
(unimpaired :l ":lprev" ":lnext")
+
(unimpaired :L ":lpfile" ":lnfile")))
+
(do ; Terminal mappings
; (map :n :<C-q>c ":term")
(map :n :<C-q>s ":Start")
···
:table config)]
(f opts)
lib))]
+
(setup :mini.ai)
+
(setup :mini.align
+
{:mappings {:start :gl
+
:start_with_preview :gL}})
+
;(setup :mini.bracketed)
+
(setup :mini.bufremove
+
(fn [bufremove]
+
(defcommand Bd (bufremove.delete))
+
(defcommand BClean
+
(->> (fun.getbufinfo {:buflisted true})
+
(vim.tbl_filter #(= (next $1.windows) nil))
+
(#(each [_ v (ipairs $1)]
+
(bufremove.delete v.bufnr)))))
+
{:set_vim_settings false}))
+
(setup :mini.jump {:mappings {:repeat_jump ":"}})
+
(setup :mini.operators {
+
:multiply {:prefix ""}
+
:replace {:prefix ""}
+
:sort {:prefix ""}})
(setup :mini.sessions
(fn [sessions]
(let [complete (fn [with-current?]
···
(defcommand SRead {:nargs 1 :bang true :complete (complete false)}
(print (sessions.read (tostring args) {:force bang}))))
{:directory (.. (fun.stdpath :data) "/site/sessions/")}))
+
(setup :mini.starter
+
(fn [starter]
+
{:items [(starter.sections.sessions 10 true)
+
(starter.sections.builtin_actions)]}))
(setup :mini.surround
{:mappings {:add :gsa
:delete :gsd
+2 -2
vim/.config/nvim/plugin/statusline.vim
···
let &statusline .= ' '
let &statusline .= '%#StatusLineNC#%{statusline#path()}%*'
let &statusline .= '%='
-
let &statusline .= '%{FugitiveHead()} %{statusline#quickfix()} %4c:%l'
-
" let &statusline .= '%{statusline#quickfix()} %4c:%l'
···
let &statusline .= ' '
let &statusline .= '%#StatusLineNC#%{statusline#path()}%*'
let &statusline .= '%='
+
"let &statusline .= '%{b:minigit_summary.head_name} %{statusline#quickfix()} %4c:%l'
+
let &statusline .= '%{statusline#quickfix()} %4c:%l'
+1
vim/.config/nvim/spell/en.utf-8.add
···
···
+
Supabase