Extend NixOS: Difference between revisions
imported>Adrian gierakowski m file name used in vm test command is vmtest.nix |
imported>Workflow m config.networking.hostname is now config.networking.hostName |
||
| Line 53: | Line 53: | ||
{ | { | ||
systemd.services = lib.mkIf (config.networking. | systemd.services = lib.mkIf (config.networking.hostName == "my-server") { | ||
ircSession = { | ircSession = { | ||
wantedBy = [ "multi-user.target" ]; | wantedBy = [ "multi-user.target" ]; | ||
| Line 67: | Line 67: | ||
}; | }; | ||
environment.systemPackages = lib.mkIf (config.networking. | environment.systemPackages = lib.mkIf (config.networking.hostName == "my-server") [ pkgs.screen ]; | ||
# ... usual configuration ... | # ... usual configuration ... | ||
| Line 92: | Line 92: | ||
{config, pkgs, lib, ...}: | {config, pkgs, lib, ...}: | ||
lib.mkIf (config.networking. | lib.mkIf (config.networking.hostName == "my-server") { | ||
systemd.services.ircSession = { | systemd.services.ircSession = { | ||
wantedBy = [ "multi-user.target" ]; | wantedBy = [ "multi-user.target" ]; | ||
| Line 174: | Line 174: | ||
]; | ]; | ||
services.ircClient.enable = config.networking. | services.ircClient.enable = config.networking.hostName == "my-server"; | ||
services.ircClient.user = "username"; | services.ircClient.user = "username"; | ||