From 9d6bd0e9ea96416534d6925c44530c2c242af94d Mon Sep 17 00:00:00 2001 From: vancycles-knak Date: Thu, 22 May 2025 12:52:49 -0700 Subject: [PATCH] update --- nix-darwin/flake.lock | 16 ++++++++++++++++ nix-darwin/flake.nix | 7 +++++++ .../users/henri.vandersleyen/configuration.nix | 1 - nix-darwin/users/henri/configuration.nix | 17 +++++++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) diff --git a/nix-darwin/flake.lock b/nix-darwin/flake.lock index 6af87527..3b1ecde1 100644 --- a/nix-darwin/flake.lock +++ b/nix-darwin/flake.lock @@ -621,6 +621,21 @@ "type": "github" } }, + "quadlet-nix": { + "locked": { + "lastModified": 1747780935, + "narHash": "sha256-QXXHXZ4mBN+CWNBdqoOhDxCJN5yVnu1hA2vZGvwyd9o=", + "owner": "SEIAROTg", + "repo": "quadlet-nix", + "rev": "4845c759415374401f053a7fc4bff81657761fbb", + "type": "github" + }, + "original": { + "owner": "SEIAROTg", + "repo": "quadlet-nix", + "type": "github" + } + }, "root": { "inputs": { "catppuccin": "catppuccin", @@ -631,6 +646,7 @@ "hyprland": "hyprland", "nixpkgs": "nixpkgs_2", "nixvim": "nixvim", + "quadlet-nix": "quadlet-nix", "rose-pine-hyprcursor": "rose-pine-hyprcursor", "sops-nix": "sops-nix", "spicetify-nix": "spicetify-nix" diff --git a/nix-darwin/flake.nix b/nix-darwin/flake.nix index e4406a2d..d46a489e 100644 --- a/nix-darwin/flake.nix +++ b/nix-darwin/flake.nix @@ -49,6 +49,11 @@ url = "github:ndom91/rose-pine-hyprcursor"; inputs.nixpkgs.follows = "nixpkgs"; }; + + quadlet-nix = { + url = "github:SEIAROTg/quadlet-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = @@ -58,6 +63,7 @@ darwin, catppuccin, nixvim, + quadlet-nix, ... }: { @@ -103,6 +109,7 @@ } // inputs; modules = [ ./users/henri/configuration.nix + quadlet-nix.nixosModules.quadlet home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; diff --git a/nix-darwin/users/henri.vandersleyen/configuration.nix b/nix-darwin/users/henri.vandersleyen/configuration.nix index fc021de0..f1106ea5 100644 --- a/nix-darwin/users/henri.vandersleyen/configuration.nix +++ b/nix-darwin/users/henri.vandersleyen/configuration.nix @@ -9,7 +9,6 @@ imports = [ # ./modules/services/appleTouchId.nix ]; - nix = { enable = true; settings.experimental-features = "nix-command flakes"; diff --git a/nix-darwin/users/henri/configuration.nix b/nix-darwin/users/henri/configuration.nix index ba4026f8..2cd83704 100644 --- a/nix-darwin/users/henri/configuration.nix +++ b/nix-darwin/users/henri/configuration.nix @@ -20,6 +20,23 @@ # local ./sops.nix ]; + + systemd.user.startServices = "sd-switch"; + virtualisation.quadlet.containers = { + echo-server = { + autoStart = true; + serviceConfig = { + RestartSec = "10"; + Restart = "always"; + }; + containerConfig = { + image = "docker.io/mendhak/http-https-echo:31"; + publishPorts = [ "127.0.0.1:8080:8080" ]; + userns = "keep-id"; + }; + }; + }; + system.stateVersion = "25.05"; boot.extraModprobeConfig = ''options bluetooth disable_ertm=1 ''; # cron