mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
Compare commits
9 commits
fd5e046406
...
3133e11a96
| Author | SHA1 | Date | |
|---|---|---|---|
| 3133e11a96 | |||
| 0a34f6cc7d | |||
| 963b1afacd | |||
| 8eb2603a8f | |||
| 98125368d3 | |||
| 0798147e92 | |||
| 3acb95f745 | |||
| c43cd8b595 | |||
| 294868e522 |
10 changed files with 69 additions and 8 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
# Protect my system from running out of storage or memory
|
# Protect my system from running out of storage or memory
|
||||||
|
let
|
||||||
|
totalStorage = 500;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
# 500GB Storage
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
min-free = 50 * 1024 * 1024 * 1024;
|
min-free = builtins.ceil (totalStorage * 0.2) * 1024 * 1024 * 1024;
|
||||||
max-free = 100 * 1024 * 1024 * 1024;
|
max-free = builtins.ceil (totalStorage * 0.3) * 1024 * 1024 * 1024;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nix-daemon.serviceConfig = {
|
systemd.services.nix-daemon.serviceConfig = {
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ in
|
||||||
./vanadium/nixos/input.nix
|
./vanadium/nixos/input.nix
|
||||||
|
|
||||||
./vanadium/nixos/misc.nix
|
./vanadium/nixos/misc.nix
|
||||||
|
./vanadium/nixos/remote-builders.nix
|
||||||
|
|
||||||
./vanadium/nixos/display.nix
|
./vanadium/nixos/display.nix
|
||||||
./vanadium/nixos/gui.nix
|
./vanadium/nixos/gui.nix
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.ghc # my favorite calculator
|
pkgs.ghc # my favorite calculator
|
||||||
|
|
||||||
|
pkgs.lsr # fast ls with io_uring
|
||||||
pkgs.nmap
|
pkgs.nmap
|
||||||
pkgs.stow
|
pkgs.stow
|
||||||
pkgs.zip
|
pkgs.zip
|
||||||
|
|
|
||||||
29
nix/configurations/vanadium/nixos/remote-builders.nix
Normal file
29
nix/configurations/vanadium/nixos/remote-builders.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
let
|
||||||
|
supportedFeatures = [
|
||||||
|
"nixos-test"
|
||||||
|
"benchmark"
|
||||||
|
"big-parallel"
|
||||||
|
"kvm"
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{pkgs, ...}:
|
||||||
|
{
|
||||||
|
nix.buildMachines = [
|
||||||
|
# NOTE: these hosts need to be put in the .ssh/config of root.
|
||||||
|
# https://wiki.nixos.org/wiki/Distributed_build#Recommended_setup:_multi-user_Nix_local_%E2%80%93%3E_multi-user_Nix_remote
|
||||||
|
{
|
||||||
|
hostName = "pancake";
|
||||||
|
sshUser = "remotebuild";
|
||||||
|
speedFactor = 2;
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
inherit supportedFeatures;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
hostName = "hetzner_benchmark";
|
||||||
|
sshUser = "remotebuild";
|
||||||
|
speedFactor = 12;
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
inherit supportedFeatures;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
# Protect my system from running out of storage or memory
|
# Protect my system from running out of storage or memory
|
||||||
|
let
|
||||||
|
totalStorage = 930;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
min-free = 50 * 1024 * 1024 * 1024;
|
min-free = builtins.ceil (totalStorage * 0.2) * 1024 * 1024 * 1024;
|
||||||
max-free = 100 * 1024 * 1024 * 1024;
|
max-free = builtins.ceil (totalStorage * 0.3) * 1024 * 1024 * 1024;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nix-daemon.serviceConfig = {
|
systemd.services.nix-daemon.serviceConfig = {
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,14 @@ infuse {
|
||||||
./patches/helix/W-as-write.patch
|
./patches/helix/W-as-write.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
|
btop.__output.patches.__append = [
|
||||||
|
(final.fetchpatch {
|
||||||
|
name = "btrfs-io-graph";
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/aristocratos/btop/pull/1285.patch";
|
||||||
|
hash = "sha256-za6B1EiOV1JqKMJwrNQo43RKChw+C4mmC8pcoxLLau4=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# pinned branch of https://github.com/astrand/xclip/tree/xerror
|
# pinned branch of https://github.com/astrand/xclip/tree/xerror
|
||||||
# use this until #43 gets resolved properly
|
# use this until #43 gets resolved properly
|
||||||
|
|
|
||||||
|
|
@ -184,8 +184,7 @@ disk_free_priv = False
|
||||||
show_io_stat = True
|
show_io_stat = True
|
||||||
|
|
||||||
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
||||||
# This doesn't seem to have an effect when using btrfs. I'd rather see the disk usage.
|
io_mode = True
|
||||||
io_mode = False
|
|
||||||
|
|
||||||
#* Set to True to show combined read/write io graphs in io mode.
|
#* Set to True to show combined read/write io graphs in io mode.
|
||||||
io_graph_combined = False
|
io_graph_combined = False
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
shellAbbrs = lib.mkMerge [
|
shellAbbrs = lib.mkMerge [
|
||||||
(lib.mkIf pkgs.stdenv.isLinux {
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
"," = "nix-shell -p";
|
"," = "nix-shell --command $SHELL -p";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
7
nix/homeModules/common/fish/functions/ls.fish
Normal file
7
nix/homeModules/common/fish/functions/ls.fish
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
function ls
|
||||||
|
if type -q lsr
|
||||||
|
command lsr $argv
|
||||||
|
else
|
||||||
|
command ls $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
11
nix/homeModules/common/fish/functions/nix.fish
Normal file
11
nix/homeModules/common/fish/functions/nix.fish
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
function nix
|
||||||
|
if [ $(count $argv) -lt 1 ]
|
||||||
|
command nix $argv
|
||||||
|
end
|
||||||
|
and if [ $argv[1] = "build" -o $argv[1] = "shell" ] && type -q nom
|
||||||
|
nom $argv
|
||||||
|
else
|
||||||
|
command nix $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue