From d4dcdf6fffa28beb7d328ee08e3c4e1bb40e5ebd Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 1 May 2023 19:28:33 -0700 Subject: profiles/workstation: reduce the number of moving parts There's too many moving parts and layers of abstractions, for no benefits: I only have to manage 3-4 machines. Going to create profiles, move things there, and stop with the `enable` pattern. --- hosts/aptos/default.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'hosts') diff --git a/hosts/aptos/default.nix b/hosts/aptos/default.nix index 0676887..af796cf 100644 --- a/hosts/aptos/default.nix +++ b/hosts/aptos/default.nix @@ -1,7 +1,13 @@ -{ ... }: +{ self, ... }: { - imports = [ ./hardware.nix ./sound.nix ./networking.nix ./services.nix ]; + imports = [ + ./hardware.nix + ./sound.nix + ./networking.nix + ./services.nix + "${self}/profiles/workstation.nix" + ]; # Allow setting GTK configuration using home-manager programs.dconf.enable = true; @@ -12,17 +18,6 @@ # install and configure sway my.programs.sway.enable = true; - virtualisation.docker = { enable = true; }; - - virtualisation.containerd = { - enable = true; - settings = { - plugins."io.containerd.grpc.v1.cri" = { - containerd.snapshotter = "overlayfs"; - }; - }; - }; - # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave -- cgit v1.2.3