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.
# TODO update hostname here!
# FIXME update hostname here!
hostname := "fenrir"
# List all the just commands

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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