more work on hosts/ and modules/config
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -5,27 +5,33 @@
|
||||
self.nixosModules.config
|
||||
./disko
|
||||
./hardware
|
||||
./distributed-build.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
hostId = "31150fae";
|
||||
hostName = "sarien";
|
||||
};
|
||||
|
||||
environment.memoryAllocator.provider = "mimalloc";
|
||||
system.stateVersion = "25.05";
|
||||
time.timeZone = "Europe/Kyiv";
|
||||
|
||||
module.config = {
|
||||
useIwd = true;
|
||||
};
|
||||
module.stylix = {
|
||||
enable = true;
|
||||
theme = "himalaya";
|
||||
};
|
||||
|
||||
desktop.niri.enable = true;
|
||||
|
||||
module = {
|
||||
config = {
|
||||
useIwd = true;
|
||||
};
|
||||
stylix = {
|
||||
enable = true;
|
||||
theme = "himalaya";
|
||||
};
|
||||
};
|
||||
|
||||
locale.ukrainian.enable = true;
|
||||
opentabletdriver.enable = false;
|
||||
qmk-vial.enable = true;
|
||||
security.basic.enable = true;
|
||||
virtual.libvirt.enable = true;
|
||||
|
30
hosts/sarien/distributed-build.nix
Normal file
30
hosts/sarien/distributed-build.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) readFile;
|
||||
inherit (config.networking) hostName;
|
||||
inherit (config.sops) secrets;
|
||||
inherit (inputs) mysecrets;
|
||||
pubHost = readFile "${mysecrets}/ssh/ssh_host_ed25519_dunamis.base64";
|
||||
in {
|
||||
nix = {
|
||||
distributedBuilds = true;
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "dunamis";
|
||||
publicHostKey = pubHost;
|
||||
sshKey = secrets."ssh-${hostName}-user".path;
|
||||
sshUser = "nix-ssh";
|
||||
supportedFeatures = [
|
||||
"benchmark"
|
||||
"big-parallel"
|
||||
"kvm"
|
||||
"nixos-test"
|
||||
];
|
||||
system = "x86_64-linux";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user