refact(config) : separate in modules

This commit is contained in:
Florian Schmitt 2023-04-14 23:51:52 +03:00
parent fa08ab4c82
commit f2a88c1b06
11 changed files with 382 additions and 230 deletions

22
modules/local-dev.nix Normal file
View file

@ -0,0 +1,22 @@
# Local developpement
{ lib, pkgs, ... }:
{
virtualisation = {
docker.enable = true;
docker.rootless = {
enable = true;
setSocketVariable = true;
};
libvirtd.enable = true;
lxd.enable = true;
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
(import (fetchTarball https://github.com/cachix/devenv/archive/v0.6.2.tar.gz)).default
direnv
virt-manager
zola
];
}