depot/ops/nixos/lib/client.nix

26 lines
703 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
2020-10-25 11:36:16 +00:00
{ pkgs, config, depot, lib, ... }:
let
inherit (lib) mkBefore;
in
{
2020-10-25 11:36:16 +00:00
config = {
my.home-manager.imports = lib.mkAfter [ ./home-manager/client.nix ];
programs.ssh.startAgent = true;
2020-10-25 11:36:16 +00:00
nix.gc.automatic = false;
2022-09-24 15:40:45 +00:00
services.udisks2.enable = true;
networking.networkmanager.extraConfig = lib.mkAfter ''
[connection]
# Enable mDNS resolver/responder by default unless otherwise configured.
connection.mdns=2
'';
environment.systemPackages = with pkgs; lib.mkMerge [
(lib.mkIf config.virtualisation.podman.enable [ podman-compose ])
];
2020-10-25 11:36:16 +00:00
};
}