style: nix format

This commit is contained in:
Poby 2026-03-14 01:25:38 +09:00
parent 7ceb157457
commit 26b1412b82
No known key found for this signature in database
19 changed files with 108 additions and 92 deletions

View file

@ -1,6 +1,6 @@
# just is a command runner, Justfile is very similar to Makefile, but simpler. # just is a command runner, Justfile is very similar to Makefile, but simpler.
# TODO update hostname here! # FIXME update hostname here!
hostname := "fenrir" hostname := "fenrir"
# List all the just commands # List all the just commands

View file

@ -42,14 +42,15 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# agenix for secrets # TODO: agenix for secrets
agenix = { agenix = {
url = "github:ryantm/agenix"; url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs-darwin"; inputs.nixpkgs.follows = "nixpkgs-darwin";
}; };
}; };
outputs = inputs @ { outputs =
inputs@{
self, self,
nixpkgs, nixpkgs,
darwin, darwin,
@ -60,18 +61,18 @@
homebrew-core, homebrew-core,
homebrew-cask, homebrew-cask,
... ...
}: let }:
let
system = "aarch64-darwin"; system = "aarch64-darwin";
username = "poby"; username = "poby";
useremail = "smg981024@gmail.com"; useremail = "smg981024@gmail.com";
hostname = "fenrir"; # TODO break down to multiple hosts hostname = "fenrir"; # TODO break down to multiple hosts
specialArgs = specialArgs = inputs // {
inputs
// {
inherit username useremail hostname; inherit username useremail hostname;
}; };
in { in
{
darwinConfigurations."${hostname}" = darwin.lib.darwinSystem { darwinConfigurations."${hostname}" = darwin.lib.darwinSystem {
inherit system specialArgs; inherit system specialArgs;
modules = [ modules = [
@ -92,9 +93,12 @@
mutableTaps = false; mutableTaps = false;
}; };
} }
({config, ...}: { (
{ config, ... }:
{
homebrew.taps = builtins.attrNames config.nix-homebrew.taps; homebrew.taps = builtins.attrNames config.nix-homebrew.taps;
}) }
)
agenix.darwinModules.default agenix.darwinModules.default
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
{ {

View file

@ -21,11 +21,15 @@
./terminal.nix ./terminal.nix
./bat.nix ./bat.nix
./aerospace.nix ./aerospace.nix
# TODO ./browser.nix
# TODO ./pass.nix # TODO ./pass.nix
# TODO ./claude-code.nix
# TODO ./codex.nix
# TODO ./gemini-cli.nix
]; ];
home = { home = {
username = username; inherit username;
homeDirectory = "/Users/${username}"; homeDirectory = "/Users/${username}";
stateVersion = "25.11"; stateVersion = "25.11";

View file

@ -1,4 +1,5 @@
{lib, ...}: [ { lib, ... }:
[
# autocmds # autocmds
{ {
enable = true; enable = true;

View file

@ -1,4 +1,5 @@
{lib, ...}: let { lib, ... }:
let
options = import ./core/options.nix; options = import ./core/options.nix;
autocmds = import ./core/autocmds.nix { inherit lib; }; autocmds = import ./core/autocmds.nix { inherit lib; };
augroups = import ./core/augroups.nix; augroups = import ./core/augroups.nix;
@ -13,7 +14,8 @@
treesitter = import ./lsp/treesitter.nix; treesitter = import ./lsp/treesitter.nix;
autocomplete = import ./lsp/autocomplete.nix; autocomplete = import ./lsp/autocomplete.nix;
languages = import ./lsp/languages; languages = import ./lsp/languages;
in { in
{
programs.nvf = { programs.nvf = {
enable = true; enable = true;

View file

@ -6,7 +6,8 @@ let
markdown = import ./markdown.nix; markdown = import ./markdown.nix;
html = import ./html.nix; html = import ./html.nix;
yaml = import ./yaml.nix; yaml = import ./yaml.nix;
in { in
{
inherit inherit
nix nix
python python

View file

@ -3,5 +3,6 @@
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
enableBashIntegration = true; enableBashIntegration = true;
# TODO wezterm config
}; };
} }

View file

@ -34,9 +34,7 @@
casks = [ casks = [
"batfi" "batfi"
"hammerspoon" "hammerspoon"
# TODO use nixpkgs when possible "shottr" # stable version dmg link not found
# "google-chrome"
"shottr"
]; ];
}; };
} }

View file

@ -2,7 +2,8 @@
username, username,
hostname, hostname,
... ...
}: { }:
{
networking = { networking = {
hostName = hostname; hostName = hostname;
computerName = hostname; computerName = hostname;

View file

@ -2,13 +2,17 @@
pkgs, pkgs,
lib, lib,
... ...
}: { }:
{
nix = { nix = {
enable = true; enable = true;
package = pkgs.nix; package = pkgs.nix;
settings = { settings = {
experimental-features = ["nix-command" "flakes"]; experimental-features = [
"nix-command"
"flakes"
];
substituters = [ "https://nix-community.cachix.org" ]; substituters = [ "https://nix-community.cachix.org" ];
trusted-public-keys = [ trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="