From 5e3e5ad843e5eb3f69c4e2ce9af241febb6d7d95 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Mon, 14 Oct 2024 00:05:34 +0200 Subject: fixup --- flake.lock | 8 ++++---- flake.nix | 2 +- machines/vm-aarch64.nix | 42 ++++++++---------------------------------- mut/lf/icons | 2 +- mut/neovim/fnl/conf/init.fnl | 8 ++++---- 5 files changed, 18 insertions(+), 44 deletions(-) diff --git a/flake.lock b/flake.lock index 7e2f64b..40baf04 100644 --- a/flake.lock +++ b/flake.lock @@ -350,13 +350,13 @@ ] }, "locked": { - "lastModified": 1712307593, - "narHash": "sha256-FQaRZ06jwQ9u/TmXBD52T+GR9SB5IKdwQavykassLeQ=", - "path": "/Users/ivi/nix-darwin", + "lastModified": 1728844240, + "narHash": "sha256-lDK39oLsP3HqqovbTAUoryEUA2IRxFNbi8egwCLmLTE=", + "path": "/home/ivi/nix-darwin", "type": "path" }, "original": { - "path": "/Users/ivi/nix-darwin", + "path": "/home/ivi/nix-darwin", "type": "path" } }, diff --git a/flake.nix b/flake.nix index 40a8841..19f5296 100644 --- a/flake.nix +++ b/flake.nix @@ -17,7 +17,7 @@ neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; drduh-yubikey-guide.url = "github:drduh/YubiKey-Guide"; nix-darwin = { - url = "path:/Users/ivi/nix-darwin"; + url = "path:/home/ivi/nix-darwin"; inputs.nixpkgs.follows = "nixpkgs"; }; }; diff --git a/machines/vm-aarch64.nix b/machines/vm-aarch64.nix index c680ec1..2b195a4 100644 --- a/machines/vm-aarch64.nix +++ b/machines/vm-aarch64.nix @@ -9,41 +9,15 @@ virtualisation.docker.rootless = { enable = true; setSocketVariable = true; + daemon.settings = { + hosts = ["unix:///run/user/${toString config.my.uid}/docker.sock" "tcp://127.0.0.1:2376"]; + }; }; - users.groups.docker.members = [ - "nixbld1" - "nixbld10" - "nixbld11" - "nixbld12" - "nixbld13" - "nixbld14" - "nixbld15" - "nixbld16" - "nixbld17" - "nixbld18" - "nixbld19" - "nixbld2" - "nixbld20" - "nixbld21" - "nixbld22" - "nixbld23" - "nixbld24" - "nixbld25" - "nixbld26" - "nixbld27" - "nixbld28" - "nixbld29" - "nixbld3" - "nixbld30" - "nixbld31" - "nixbld32" - "nixbld4" - "nixbld5" - "nixbld6" - "nixbld7" - "nixbld8" - "nixbld9" - ]; + systemd.user.services.docker.serviceConfig.Environment="DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS=\"-p 0.0.0.0:2376:2376/tcp\""; + systemd.user.services.docker.serviceConfig.ExecStart = let + cfg = config.virtualisation.docker.rootless; + in + mkForce "${cfg.package}/bin/dockerd-rootless --config-file=${(pkgs.formats.json {}).generate "daemon.json" cfg.daemon.settings}"; networking.hostName = "vm-aarch64"; programs.nix-ld.enable = true; diff --git a/mut/lf/icons b/mut/lf/icons index 0895903..2260f2b 120000 --- a/mut/lf/icons +++ b/mut/lf/icons @@ -1 +1 @@ -/nix/store/yab9wd0wxx5s54amq6waiz862m405qcz-home-manager-files/.config/lf/icons \ No newline at end of file +/nix/store/q8hdr7j1k3mwdjh63n3i0m10d098s60n-home-manager-files/.config/lf/icons \ No newline at end of file diff --git a/mut/neovim/fnl/conf/init.fnl b/mut/neovim/fnl/conf/init.fnl index 28cb1f0..9a776ce 100644 --- a/mut/neovim/fnl/conf/init.fnl +++ b/mut/neovim/fnl/conf/init.fnl @@ -83,10 +83,10 @@ (let [map vim.keymap.set] (map :n :gb ":GBrowse") (map :n :g ::G) - (map :n :ga "(EasyAlign)") - (map :x :ga "(EasyAlign)") - (map :n :d (fn [] (draw true))) - (map :n :d (fn [] (draw false))) + ;(map :n :ga "(EasyAlign)") + ;(map :x :ga "(EasyAlign)") + ; (map :n :d (fn [] (draw true))) + ; (map :n :d (fn [] (draw false))) (map :n :- ::Oil) (map :n :_ #(oil.open_cwd.callback)) (map :n :qf cope) -- cgit v1.2.3