things
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
# TODO: should max-builds be enforced on thisHost as well?
|
||||
|
||||
let
|
||||
inherit (builtins)
|
||||
map
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
# TODO: use tailscale if enabled
|
||||
|
||||
{
|
||||
# TODO: wireguard
|
||||
#boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ];
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
# TODO: use tailscale if enabled
|
||||
|
||||
{
|
||||
# TODO: wireguard
|
||||
#boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ];
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
# TODO: use tailscale if enabled
|
||||
|
||||
{
|
||||
# TODO: wireguard
|
||||
#boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ];
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
/*
|
||||
|
||||
# via https://distrobox.it/compatibility/#containers-distros
|
||||
use --nvidia for cuda support
|
||||
|
||||
distrobox create --name alpine --init --yes --image docker.io/libary/alpine:latest
|
||||
distrobox create --name arch --init --yes --image docker.io/libary/archlinux:latest
|
||||
distrobox create --name debian --init --yes --image docker.io/libary/debian:testing
|
||||
distrobox create --name fedora --init --yes --image quay.io/fedora/fedora:rawhide
|
||||
distrobox create --name gentoo --init --yes --image docker.io/gentoo/stage3:latest
|
||||
#distrobox create --name ubuntu --init --yes --image quay.io/toolbx/ubuntu-toolbox:latest
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
|
||||
assertions = [
|
||||
@@ -12,11 +26,14 @@
|
||||
environment.systemPackages = [
|
||||
pkgs.distrobox
|
||||
];
|
||||
# ++ lib.optionals (!config.virtualisation.docker.enable && !config.virtualisation.podman.enable) [
|
||||
# pkgs.lilipod
|
||||
#];
|
||||
|
||||
# update periodically
|
||||
systemd.user = {
|
||||
timers."distrobox-update" = {
|
||||
enable = true;
|
||||
enable = config.system.autoUpgrade.enable;
|
||||
wantedBy = ["timers.target"];
|
||||
timerConfig = {
|
||||
OnBootSec = "1h";
|
||||
@@ -26,7 +43,7 @@
|
||||
};
|
||||
|
||||
services."distrobox-update" = {
|
||||
enable = true;
|
||||
enable = config.system.autoUpgrade.enable;
|
||||
script = ''
|
||||
${pkgs.distrobox}/bin/distrobox upgrade --all
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user