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 3 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; | ||
|
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify lix-related inputs in flake.nix
echo "=== Checking for lix input in flake.nix ==="
rg -n "lix" flake.nix || echo "No lix references found in flake.nix"
echo ""
echo "=== Checking for lixPackageSets usage in codebase ==="
rg -n "lixPackageSets" --type nixRepository: shunkakinoki/dotfiles Length of output: 291 🏁 Script executed: #!/bin/bash
# Examine home-manager/nix/default.nix to understand pkgs instantiation
echo "=== Content of home-manager/nix/default.nix ==="
cat home-manager/nix/default.nix
echo ""
echo "=== Checking flake.nix for any overlays ==="
head -100 flake.nix
echo ""
echo "=== Searching for any overlay or lixPackageSets definition ==="
rg -n "overlay|lixPackageSets" --type nix | head -20Repository: shunkakinoki/dotfiles Length of output: 4979 🏁 Script executed: #!/bin/bash
# Examine overlays/default.nix to see if lixPackageSets is provided
echo "=== Content of overlays/default.nix ==="
cat overlays/default.nix
echo ""
echo "=== Search for lixPackageSets definition or provision anywhere ==="
rg -n "lixPackageSets" . --type nixRepository: shunkakinoki/dotfiles Length of output: 2606 Add lix input to flake.nix or use standard Line 9 references To fix:
- package = lib.mkDefault pkgs.lixPackageSets.latest.lix;
+ package = lib.mkDefault pkgs.nix;🤖 Prompt for AI Agents |
||
| 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" ]; |
Uh oh!
There was an error while loading. Please reload this page.
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.
P2: Battery detection checks for “any offline AC input” instead of “no AC input online,” which can trigger battery-only lock behavior while plugged in on multi-input systems.
Prompt for AI agents