23.11 compat
This commit is contained in:
parent
f9b4345938
commit
eccd7f0fde
@ -285,7 +285,7 @@
|
||||
#hostname "domain" "system" inputs "state" [ modules ... ]
|
||||
noximilien = mk "pbsds.net" "x86_64-linux" inputs-2311 "22.11" [ au intel ];
|
||||
brumlebasse = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au amd nspawn ];
|
||||
nord = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au intel-novga hw.common-cpu-intel-sandy-bridge rocm hidpi ];
|
||||
nord = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au intel-novga hw_.common-cpu-intel-sandy-bridge rocm hidpi ];
|
||||
sopp = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au nixld intel cuda p1005 ];
|
||||
bjarte = mk "pbsds.net" "x86_64-linux" inputs-2405 "23.11" [ nixld intel hw.lenovo-thinkpad-x1-7th-gen ];
|
||||
bolle = mk "pbsds.net" "x86_64-linux" inputs-2405 "23.11" [ au dns64 intel ];
|
||||
|
@ -20,8 +20,9 @@ rec {
|
||||
];
|
||||
};
|
||||
|
||||
micro = prev.micro.override {
|
||||
wl-clipboard = wl-clipboard-timeout;
|
||||
};
|
||||
|
||||
micro = if prev.micro.override.__functionArgs ? wl-clipboard
|
||||
then prev.micro.override {
|
||||
wl-clipboard = wl-clipboard-timeout;
|
||||
}
|
||||
else prev.micro;
|
||||
}
|
||||
|
@ -3,5 +3,5 @@
|
||||
# https://lix.systems/add-to-config/
|
||||
|
||||
{
|
||||
nix.package = pkgs.lix;
|
||||
nix.package = lib.mkIf (pkgs ? lix) pkgs.lix;
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ let
|
||||
thisHost = hosts.${config.networking.fqdn};
|
||||
thisHostIsBuilder = thisHost.maxJobs > 0;
|
||||
thisHostIsHopHost = builtins.elem config.networking.fqdn (lib.forEach hosts (host: host.ssh.proxyJump or null));
|
||||
thisHostIsConsumer = thisHost.ssh ? userPublicKey;
|
||||
|
||||
mkRemoteConfig = fqdn: let
|
||||
host = hosts.${fqdn};
|
||||
@ -32,13 +33,13 @@ let
|
||||
isThis = fqdn == config.networking.fqdn;
|
||||
in mkIf (!isThis) ( lib.mkMerge [
|
||||
# out
|
||||
(lib.mkIf isBuilder {
|
||||
(lib.mkIf (isBuilder && thisHostIsConsumer) {
|
||||
|
||||
nix.buildMachines = [ buildMachine ];
|
||||
|
||||
})
|
||||
# out or jump
|
||||
(lib.mkIf (host.ssh ? listenPublicKey) {
|
||||
(lib.mkIf (host.ssh ? listenPublicKey && thisHostIsConsumer) {
|
||||
programs.ssh.knownHosts.${fqdn}.publicKey = host.ssh.listenPublicKey;
|
||||
|
||||
# timeouts are great when remote is unresponsive. nix doesn't care
|
||||
|
Loading…
Reference in New Issue
Block a user