This commit is contained in:
parent
dda00ad09f
commit
e1fbff024b
2 changed files with 22 additions and 2 deletions
21
common.nix
21
common.nix
|
|
@ -104,4 +104,25 @@
|
||||||
dnsutils
|
dnsutils
|
||||||
busybox
|
busybox
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Offload builds to the media server. Excluded on the server itself to
|
||||||
|
# avoid a pointless SSH round-trip to localhost.
|
||||||
|
nix.distributedBuilds =
|
||||||
|
lib.mkIf (config.networking.hostName != "FredOS-Mediaserver") true;
|
||||||
|
|
||||||
|
nix.buildMachines =
|
||||||
|
lib.mkIf (config.networking.hostName != "FredOS-Mediaserver") [{
|
||||||
|
hostName = "nordhammer.it";
|
||||||
|
systems = [ "x86_64-linux" ];
|
||||||
|
sshUser = "fred";
|
||||||
|
sshKey = "/root/.ssh/id_ed25519";
|
||||||
|
maxJobs = 4;
|
||||||
|
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
||||||
|
}];
|
||||||
|
|
||||||
|
# Accept unsigned paths copied back from the remote builder.
|
||||||
|
nix.extraOptions =
|
||||||
|
lib.mkIf (config.networking.hostName != "FredOS-Mediaserver") ''
|
||||||
|
require-sigs = false
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,9 @@
|
||||||
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
|
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
|
||||||
# Enable Gnome
|
# Enable Gnome
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.displayManager.gdm.enable = true;
|
services.displayManager.ly.enable = true;
|
||||||
services.displayManager.defaultSession = "hyprland";
|
services.displayManager.defaultSession = "hyprland";
|
||||||
services.desktopManager.gnome.enable = true;
|
services.desktopManager.gnome.enable = true;
|
||||||
services.displayManager.gdm.wayland = true;
|
|
||||||
boot.plymouth.enable = false;
|
boot.plymouth.enable = false;
|
||||||
|
|
||||||
# Flatpak for ad-hoc app installs via Bazaar
|
# Flatpak for ad-hoc app installs via Bazaar
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue