alejandra?

This commit is contained in:
Tao Tien 2024-02-24 02:30:17 -08:00
parent 63baacc410
commit 21d7561a56
17 changed files with 296 additions and 204 deletions

View file

@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
users.users.tao.packages = with pkgs; [
libsForQt5.kdeconnect-kde
];
@ -16,14 +15,14 @@
# };
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
(nerdfonts.override {fonts = ["FiraCode"];})
noto-fonts-cjk
noto-fonts-emoji
];
users.users.tao = {
isNormalUser = true;
extraGroups = [ "wheel" "dialout" ];
extraGroups = ["wheel" "dialout"];
# shell = pkgs.nushell;
};

View file

@ -1,4 +1,9 @@
{ inputs, config, pkgs, ... }: {
{
inputs,
config,
pkgs,
...
}: {
users.users.tao.packages = with pkgs; [
# birdtray
# cider
@ -65,7 +70,7 @@
];
# programs.adb.enable = true;
programs.mosh.enable = true;
environment.shells = with pkgs; [ nushell ];
environment.shells = with pkgs; [nushell];
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
@ -94,14 +99,14 @@
'';
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
(nerdfonts.override {fonts = ["FiraCode"];})
noto-fonts-cjk
noto-fonts-color-emoji
];
users.users.tao = {
isNormalUser = true;
extraGroups = [ "video" "wheel" "libvirtd" "dialout" "game" ];
extraGroups = ["video" "wheel" "libvirtd" "dialout" "game"];
shell = pkgs.nushell;
};
@ -114,5 +119,5 @@
home-manager.useGlobalPkgs = true;
home-manager.verbose = true;
home-manager.backupFileExtension = ".hm-bak";
home-manager.users.tao = (import ./tao/home.nix { inherit inputs pkgs; });
home-manager.users.tao = import ./tao/home.nix {inherit inputs pkgs;};
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
home.file.".cargo/config.toml".text = ''
[alias]
rr = "run --release"
@ -31,7 +31,7 @@
# # linker = "musl-gcc"
# linker = "clang"
# rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
[target.x86-unknown-linux-gnu]
# linker = "musl-gcc"
linker = "clang"

View file

@ -1,4 +1,8 @@
{ inputs, pkgs, ... }: {
{
inputs,
pkgs,
...
}: {
programs.helix = {
settings = {
theme = "dracula";
@ -16,9 +20,9 @@
select = "underline";
};
statusline = {
left = [ "mode" "spinner" "spacer" "version-control" ];
center = [ "file-name" "file-modification-indicator" ];
right = [ "diagnostics" "primary-selection-length" "total-line-numbers" "selections" "position" ];
left = ["mode" "spinner" "spacer" "version-control"];
center = ["file-name" "file-modification-indicator"];
right = ["diagnostics" "primary-selection-length" "total-line-numbers" "selections" "position"];
};
lsp = {
display-messages = true;
@ -42,15 +46,42 @@
auto-format = true;
formatter = {
command = "clang-format";
args = [ "--style=file:/home/tao/Templates/clang-format" ];
args = ["--style=file:/home/tao/Templates/clang-format"];
};
indent = {
tab-width = 8;
unit = "\t";
};
indent = { tab-width = 8; unit = "\t"; };
}
# { name = "css"; comment = "/*"; }
{ name = "html"; auto-format = false; indent = { tab-width = 4; unit = "\t"; }; }
{ name = "java"; auto-format = true; indent = { tab-width = 4; unit = "\t"; }; }
{ name = "nix"; auto-format = true; formatter = { command = "nixpkgs-fmt"; }; }
{ name = "typst"; indent = { tab-width = 4; unit = " "; }; }
{
name = "html";
auto-format = false;
indent = {
tab-width = 4;
unit = "\t";
};
}
{
name = "java";
auto-format = true;
indent = {
tab-width = 4;
unit = "\t";
};
}
{
name = "nix";
auto-format = true;
formatter = {command = "alejandra";};
}
{
name = "typst";
indent = {
tab-width = 4;
unit = " ";
};
}
# { name = "rust"; }
];
language-servers = {

View file

@ -1,6 +1,10 @@
{ pkgs, inputs, ... }: {
{
pkgs,
inputs,
...
}: {
imports = [
(import ./helix.nix { inherit pkgs inputs; })
(import ./helix.nix {inherit pkgs inputs;})
# ./hyprland.nix
./cargo.nix
];
@ -13,10 +17,9 @@
name = "Tao Tien";
email = "29749622+taotien@users.noreply.github.com";
};
ui =
{
default-command = "log";
};
ui = {
default-command = "log";
};
};
package = inputs.jujutsu.packages.${pkgs.system}.default;
};
@ -46,7 +49,7 @@
zellij = {
enable = true;
settings = { };
settings = {};
};
zoxide = {

View file

@ -1,11 +1,9 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
users.users.vy.packages = with pkgs; [
];
users.users.vy = {
isNormalUser = true;
extraGroups = [ "scanner" "lp" ];
extraGroups = ["scanner" "lp"];
};
}