trying out docker

This commit is contained in:
Deepak Mallubhotla 2025-03-21 12:32:21 -05:00
parent 4d2fa843bf
commit c40724190e
Signed by: deepak
GPG Key ID: 47831B15427F5A55
4 changed files with 21 additions and 3 deletions

View File

@ -147,7 +147,7 @@ in
cmp_luasnip cmp_luasnip
nvim-lspconfig nvim-lspconfig
# vim-vinegar # vim-vinegar
oil-nvim oil-nvim
wiki-vim wiki-vim

View File

@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
customPackageOverlay, customPackageOverlay,
withDocker,
stateVersion, stateVersion,
modulesPath, modulesPath,
hostname, hostname,
@ -100,4 +101,9 @@ in
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
virtualisation.docker.rootless = pkgs.lib.mkIf withDocker {
enable = true;
setSocketVariable = true;
};
} }

View File

@ -25,6 +25,7 @@ in
specialArgs = { specialArgs = {
inherit customPackageOverlay; inherit customPackageOverlay;
inherit nixpkgs-unstable; inherit nixpkgs-unstable;
withDocker = false;
}; };
modules = [ modules = [
./maxos/configuration.nix ./maxos/configuration.nix
@ -54,6 +55,7 @@ in
inherit nixpkgs-unstable; inherit nixpkgs-unstable;
hostname = "nixosWalrus"; hostname = "nixosWalrus";
stateVersion = "24.11"; stateVersion = "24.11";
withDocker = false;
}; };
modules = [ modules = [
./commonWSL-configuration.nix ./commonWSL-configuration.nix
@ -87,6 +89,7 @@ in
inherit nixpkgs-unstable; inherit nixpkgs-unstable;
hostname = "nixosWSL"; hostname = "nixosWSL";
stateVersion = "22.05"; stateVersion = "22.05";
withDocker = false;
}; };
modules = [ modules = [
./commonWSL-configuration.nix ./commonWSL-configuration.nix
@ -120,6 +123,7 @@ in
inherit nixpkgs-unstable; inherit nixpkgs-unstable;
hostname = "nixosEggYoke"; hostname = "nixosEggYoke";
stateVersion = "22.05"; stateVersion = "22.05";
withDocker = true;
}; };
modules = [ modules = [
./commonWSL-configuration.nix ./commonWSL-configuration.nix

View File

@ -1,6 +1,14 @@
# executes default, set to rebuilding current flake as test # executes default, set to rebuilding current flake as test
default: test default:
just --list
# does a nixos-rebuild test of current flake # does a nixos-rebuild test of current flake
test: install:
sudo nixos-rebuild test --flake . sudo nixos-rebuild test --flake .
# run nix flake check
test:
nix flake check
fmt:
nix fmt