Compare commits
13 Commits
2282e2ddfa
...
df676089eb
| Author | SHA1 | Date | |
|---|---|---|---|
| df676089eb | |||
| ae85f4ab0b | |||
| 199b06e386 | |||
| 3ed6945c3e | |||
| a202117d86 | |||
| 573449ffad | |||
| ae6fdaa2bc | |||
| 14988a0274 | |||
| 6941000feb | |||
| 307db65758 | |||
| e2e2369c15 | |||
| 27b1a0b0da | |||
| 7e26127ce6 |
@@ -31,10 +31,6 @@
|
|||||||
|
|
||||||
boot.kernelModules = ["rbd" "nbd" "ceph"];
|
boot.kernelModules = ["rbd" "nbd" "ceph"];
|
||||||
|
|
||||||
# Make Ceph user-space tools available on the system
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
# networking.firewall.allowedTCPPorts = [
|
# networking.firewall.allowedTCPPorts = [
|
||||||
# 6443 # k3s: required so that pods can reach the API server (running on port 6443 by default)
|
# 6443 # k3s: required so that pods can reach the API server (running on port 6443 by default)
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.kernelModules = ["rbd" "nbd"];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
kubernetes-helm
|
kubernetes-helm
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<div id="date"></div>
|
<div id="date"></div>
|
||||||
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<form action="https://tanomu.momiko.moe" method="get" autocomplete="off">
|
<form action="https://duckduckgo.com" method="get" autocomplete="off">
|
||||||
<label for="q">></label>
|
<label for="q">></label>
|
||||||
<input autofocus id="q" name="q" placeholder="search.." type="search">
|
<input autofocus id="q" name="q" placeholder="search.." type="search">
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ alias verus-dir="cd /home/synchronous/code/verus"
|
|||||||
alias cure="cd /home/synchronous/code/cure53"
|
alias cure="cd /home/synchronous/code/cure53"
|
||||||
alias scripts="cd /home/synchronous/nix-cfg/home/scripts"
|
alias scripts="cd /home/synchronous/nix-cfg/home/scripts"
|
||||||
alias bookmarks="vim -c '80' /home/synchronous/nix-cfg/home/programs/firefox/default.nix"
|
alias bookmarks="vim -c '80' /home/synchronous/nix-cfg/home/programs/firefox/default.nix"
|
||||||
|
alias startpage="vim /home/synchronous/nix-cfg/home/programs/firefox/startpage/index.html"
|
||||||
|
|
||||||
stack() {
|
stack() {
|
||||||
find . -type f -exec echo -e "\n--- {} ---\n" \; -exec cat {} \;
|
find . -type f -exec echo -e "\n--- {} ---\n" \; -exec cat {} \;
|
||||||
|
|||||||
Binary file not shown.
24
system/services/remote-builds.nix
Normal file
24
system/services/remote-builds.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
# nix.extraOptions = ''
|
||||||
|
# builders-use-substitutes = true
|
||||||
|
# '';
|
||||||
|
|
||||||
|
nix.buildMachines = [
|
||||||
|
{
|
||||||
|
hostName = "server3-gpu"; # Must be resolvable or an IP
|
||||||
|
system = "x86_64-linux"; # The architecture of the builder
|
||||||
|
protocol = "ssh-ng"; # Optimized protocol
|
||||||
|
maxJobs = 4;
|
||||||
|
speedFactor = 2;
|
||||||
|
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||||
|
mandatoryFeatures = [];
|
||||||
|
sshUser = "synchronous";
|
||||||
|
sshKey = "/home/synchronous/.ssh/id_ed25519"; # Path to private key on client
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -10,5 +10,6 @@
|
|||||||
# ./resolved/default.nix (not enabled, in favor of dnsmasq)
|
# ./resolved/default.nix (not enabled, in favor of dnsmasq)
|
||||||
./dnsmasq/default.nix
|
./dnsmasq/default.nix
|
||||||
./printing.nix
|
./printing.nix
|
||||||
|
./remote-builds.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,6 +59,8 @@
|
|||||||
plugins."io.containerd.grpc.v1.cri".registry.configs."100.125.181.75:5000".tls.insecure_skip_verify = true;
|
plugins."io.containerd.grpc.v1.cri".registry.configs."100.125.181.75:5000".tls.insecure_skip_verify = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = ["synchronous" "root"];
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|||||||
@@ -80,6 +80,8 @@
|
|||||||
#media-session.enable = true;
|
#media-session.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = ["synchronous" "root"];
|
||||||
|
|
||||||
security.sudo = {
|
security.sudo = {
|
||||||
# me ne frego. i dare you to privilege escalate me
|
# me ne frego. i dare you to privilege escalate me
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user