Repository navigation
feat(hm): add syncthing service and enhance nix config #1259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
1eca583
d4c10b1
369f483
bc51637
5b40a31
1953f99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| lib, | ||
| pkgs, | ||
| inputs, | ||
| ... | ||
| }: | ||
| { | ||
| nix = { | ||
| package = lib.mkDefault pkgs.lixPackageSets.latest.lix; | ||
| enable = true; | ||
| registry.nixpkgs.flake = inputs.nixpkgs; | ||
| settings = { | ||
| experimental-features = [ | ||
| "nix-command" | ||
| "flakes" | ||
| ]; | ||
| use-xdg-base-directories = true; | ||
| substituters = [ | ||
| "https://cache.nixos.org" | ||
| "https://cache.garnix.io" | ||
| "https://cloudtide.cachix.org" | ||
| "https://nix-community.cachix.org" | ||
| "https://yazi.cachix.org" | ||
| ]; | ||
| trusted-public-keys = [ | ||
| "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" | ||
| "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" | ||
| "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" | ||
| "cloudtide.cachix.org-1:9NZ1Mah2+u8cd/CmVffFV23z5uFNpZSrhfgTt5fuN/4=" | ||
| "yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k=" | ||
| ]; | ||
| }; | ||
| gc = { | ||
| automatic = true; | ||
| }; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ let | |
| sshAgent = import ./ssh-agent { | ||
| inherit config lib pkgs; | ||
| }; | ||
| syncthing = import ./syncthing { inherit lib pkgs; }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| tmuxSessionLogger = import ./tmux-session-logger { inherit pkgs; }; | ||
| in | ||
| [ | ||
|
|
@@ -30,5 +31,6 @@ in | |
| neversslKeepalive | ||
| ollama | ||
| sshAgent | ||
| syncthing | ||
| tmuxSessionLogger | ||
| ] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { pkgs, lib, ... }: | ||
| { | ||
| services.syncthing = lib.mkIf pkgs.stdenv.isLinux { | ||
| enable = true; | ||
| }; | ||
|
||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Enabling To implement this, you'll also need to pass |
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -336,20 +336,19 @@ inputs.nixpkgs.lib.nixosSystem { | |||||||
| zlib | ||||||||
| ]; | ||||||||
|
|
||||||||
| # Nix settings | ||||||||
| # NixOS-level nix settings (complements home-manager nix/) | ||||||||
|
||||||||
| # NixOS-level nix settings (complements home-manager nix/) | |
| # NixOS-level nix settings (complements home-manager/nix) |
Copilot
AI
Mar 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
experimental-features (flakes + nix-command) was removed from this host’s NixOS nix.settings. Other NixOS configs in this repo still explicitly set these (e.g. hosts/nixos/default.nix), and without them nixos-rebuild --flake / flake-based nix commands can fail depending on the Nix version. Consider restoring nix.settings.experimental-features = [ "nix-command" "flakes" ]; here (or explicitly switching the system nix.package to one where flakes are enabled by default).
| nix-path = lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; | |
| nix-path = lib.mkForce "nixpkgs=/etc/nix/inputs/nixpkgs"; | |
| experimental-features = [ "nix-command" "flakes" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 291
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 4979
🏁 Script executed:
Repository: shunkakinoki/dotfiles
Length of output: 2606
Add lix input to flake.nix or use standard
pkgs.nix.Line 9 references
pkgs.lixPackageSets.latest.lix, butlixPackageSetsis not available. The flake.nix inputs do not include any lix-related input, and the overlays do not provide this package set. This will fail evaluation with an attribute error.To fix:
pkgs.nixinstead:🤖 Prompt for AI Agents