aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos/sils/nix.nix
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2026-06-23 02:56:12 +0200
committerSilas Schöffel <sils@sils.li>2026-06-23 02:56:12 +0200
commit0ee989b8473bcdf3f7e4c2bb68217cbaab25cdd1 (patch)
tree978f54918d4cecb5af209f1e0655fc227c6d9987 /modules/nixos/sils/nix.nix
parentuser: rename to jaki (diff)
downloadnix-config-0ee989b8473bcdf3f7e4c2bb68217cbaab25cdd1.zip
treewide: rename paths to jaki
Diffstat (limited to 'modules/nixos/sils/nix.nix')
-rw-r--r--modules/nixos/sils/nix.nix66
1 files changed, 0 insertions, 66 deletions
diff --git a/modules/nixos/sils/nix.nix b/modules/nixos/sils/nix.nix
deleted file mode 100644
index 9d73fcd..0000000
--- a/modules/nixos/sils/nix.nix
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- self,
- config,
- nixpkgs,
- lib,
- ...
-}: let
- cfg = config.sils.nix-config;
-in {
- options.sils.nix-config = {
- enable = lib.mkEnableOption "nix config";
- remoteBuild = lib.mkEnableOption "remote builds";
- };
- config = {
- nix = {
- registry = {
- nixpkgs.flake = self.inputs.nixpkgs;
- n.flake = self.inputs.nixpkgs;
- self.flake = self;
- s.flake = self;
- };
- channel.enable = false;
- distributedBuilds = cfg.remoteBuild;
- buildMachines = [
- {
- hostName = "server1.vhack.eu";
- protocol = "ssh-ng";
- system = "x86_64-linux";
- supportedFeatures = ["big-parallel"];
- }
- ];
- gc = {
- automatic = true;
- dates = "daily";
- options = "--delete-older-than 3";
- };
- settings = {
- auto-optimise-store = true;
- commit-lockfile-summary = "flake.lock: update";
- experimental-features = ["nix-command" "flakes"];
- substituters = [
- "https://cache.garnix.io"
- "https://hyprland.cachix.org"
- ];
- trusted-public-keys = [
- "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
- "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
- ];
- };
- };
- home-manager.users.root.home = {
- #lib.mkIf cfg.remoteBuild { TODO Why does this fail?
- username = "root";
- homeDirectory = "/root";
- stateVersion = "23.05";
- file.".ssh/config" = {
- text = ''
- Host server1.vhack.eu
- IdentitiesOnly yes
- IdentityFIle ${config.age.secrets.nixremote.path}
- User nixremote
- '';
- };
- };
- };
-}