diff --git a/flake.lock b/flake.lock index c207939..12a9f4f 100644 --- a/flake.lock +++ b/flake.lock @@ -401,11 +401,11 @@ "nixvim": "nixvim" }, "locked": { - "lastModified": 1741086060, - "narHash": "sha256-35fw6MoEXEutctwNS0z7VQ0AX8thHhU2KT0UxD/s3P4=", + "lastModified": 1735219902, + "narHash": "sha256-s1aI4l9e0OX861wHsvAPqz/s8B9ZTltAMJzPRXt5Kqo=", "ref": "refs/heads/master", - "rev": "9240bb4db98fe13b3fdaa0e15a06949959df568a", - "revCount": 26, + "rev": "4439691030d1a28f4ad49c542104e3f880f7c183", + "revCount": 25, "type": "git", "url": "https://git.xiny.li/xin/nixvim" }, diff --git a/flake.nix b/flake.nix index f81f61a..abd9da6 100644 --- a/flake.nix +++ b/flake.nix @@ -123,9 +123,6 @@ comin.nixosModules.comin ]; nodeNixosModules = { - weilite = [ - ./machines/weilite - ]; calcite = [ nixos-hardware.nixosModules.asus-zephyrus-ga401 catppuccin.nixosModules.catppuccin @@ -272,6 +269,17 @@ ] ++ sharedColmenaModules; }; + weilite = + { ... }: + { + imports = [ machines/weilite ] ++ sharedColmenaModules; + deployment = { + targetHost = "weilite.coho-tet.ts.net"; + targetPort = 22; + buildOnTarget = false; + }; + nixpkgs.system = "x86_64-linux"; + }; thorite = { ... }: { @@ -301,11 +309,6 @@ calcite = mkNixos { hostname = "calcite"; }; - - weilite = mkNixos { - hostname = "weilite"; - }; - baryte = mkNixos { hostname = "baryte"; }; diff --git a/garnix.yaml b/garnix.yaml index c9f5129..630fac6 100644 --- a/garnix.yaml +++ b/garnix.yaml @@ -7,4 +7,13 @@ builds: - homeConfigurations.aarch64-linux.* - darwinConfigurations.* - nixosConfigurations.* - branch: testing-calcite + branch: deploy + - include: + - '*.x86_64-linux.*' + - defaultPackage.x86_64-linux + - devShell.x86_64-linux + - homeConfigurations.x86_64-linux.* + - homeConfigurations.aarch64-linux.* + - darwinConfigurations.* + - nixosConfigurations.* + branch: next diff --git a/home/xin/calcite.nix b/home/xin/calcite.nix index 8d83d35..40b93c9 100644 --- a/home/xin/calcite.nix +++ b/home/xin/calcite.nix @@ -122,7 +122,6 @@ in enable = true; options = { recolor = false; - selection-clipboard = "clipboard"; }; }; diff --git a/machines/calcite/configuration.nix b/machines/calcite/configuration.nix index c9afcd5..e5a74ea 100644 --- a/machines/calcite/configuration.nix +++ b/machines/calcite/configuration.nix @@ -188,8 +188,8 @@ in services.printing.enable = true; services.printing.drivers = [ pkgs.hplip - pkgs.gutenprint pkgs.gutenprintBin + pkgs.canon-cups-ufr2 ]; hardware.sane = { enable = true; diff --git a/machines/calcite/network.nix b/machines/calcite/network.nix index 0626cc9..27e77ee 100644 --- a/machines/calcite/network.nix +++ b/machines/calcite/network.nix @@ -12,41 +12,19 @@ networking = { networkmanager = { enable = true; - dns = "default"; - settings = { - main = { - rc-manager = "resolvconf"; - }; - }; + dns = "systemd-resolved"; }; }; - networking.resolvconf = { + services.resolved = { enable = true; - dnsExtensionMechanism = false; - useLocalResolver = false; - }; - - services.kresd = { - enable = true; - listenPlain = [ ]; extraConfig = '' - log_level("notice") - net.listen('127.0.0.1', 53) - modules = { 'hints > iterate', 'stats', 'predict' } - cache.size = 100 * MB - trust_anchors.remove(".") - policy.add(policy.all(policy.TLS_FORWARD( { - { "8.8.8.8", hostname="dns.google" } }))) + Cache=no ''; - # policy.add(policy.suffix(policy.FORWARD({ "100.100.100.100" }), policy.todnames({ 'coho-tet.ts.net' }))) }; # Enable Tailscale - services.tailscale = { - enable = true; - extraUpFlags = [ "--accept-dns=false" ]; - }; + services.tailscale.enable = true; # services.tailscale.useRoutingFeatures = "both"; services.dae.enable = true; diff --git a/machines/weilite/default.nix b/machines/weilite/default.nix index cacfc83..8846704 100644 --- a/machines/weilite/default.nix +++ b/machines/weilite/default.nix @@ -63,7 +63,6 @@ }; nixpkgs.config.allowUnfree = true; - nixpkgs.hostPlatform = "x86_64-linux"; environment.systemPackages = [ pkgs.virtiofsd