mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 20:17:12 +08:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ config, flake, lib, ... }:
|
|
|
|
let
|
|
inherit (flake) inputs;
|
|
inherit (inputs) self;
|
|
homeMod = self + /modules/home;
|
|
in
|
|
{
|
|
nixos-unified.sshTarget = "srid@pureintent";
|
|
# nixos-unified.sshTarget = "srid@192.168.2.244";
|
|
|
|
imports = [
|
|
self.nixosModules.default
|
|
./configuration.nix
|
|
];
|
|
|
|
users.users.${flake.config.me.username}.linger = true;
|
|
home-manager.sharedModules = [
|
|
"${homeMod}/services/vira.nix"
|
|
"${homeMod}/work/juspay.nix"
|
|
# (self + /modules/home/services/dropbox.nix)
|
|
|
|
# Remote builders
|
|
"${homeMod}/nix/buildMachines"
|
|
"${homeMod}/nix/buildMachines/sincereintent.nix"
|
|
{
|
|
services.ttyd = {
|
|
enable = true;
|
|
port = 9999;
|
|
command = "${lib.getExe config.programs.tmux.package} new-session -A -s ttyd";
|
|
write = true;
|
|
};
|
|
}
|
|
];
|
|
|
|
nix.settings.sandbox = "relaxed";
|
|
|
|
services.openssh.enable = true;
|
|
services.tailscale.enable = true;
|
|
networking.firewall.allowedTCPPorts = [
|
|
80
|
|
443
|
|
];
|
|
|
|
programs.nix-ld.enable = true; # for vscode server
|
|
|
|
# Workaround the annoying `Failed to start Network Manager Wait Online` error on switch.
|
|
# https://github.com/NixOS/nixpkgs/issues/180175
|
|
systemd.services.NetworkManager-wait-online.enable = false;
|
|
}
|