chore: Formatting
All checks were successful
Flake checker / Build Nix targets (push) Successful in 9m26s

This commit is contained in:
uttarayan21
2025-08-14 19:34:20 +05:30
parent 57832be28d
commit c959a3aea8
15 changed files with 164 additions and 177 deletions

View File

@@ -5,8 +5,7 @@
lib,
device,
...
}:
{
}: {
imports = [
inputs.nix-index-database.homeModules.nix-index
../modules
@@ -34,7 +33,9 @@
home = {
username = device.user;
homeDirectory =
if device.isDarwin then lib.mkForce "/Users/${device.user}" else lib.mkForce "/home/${device.user}";
if device.isDarwin
then lib.mkForce "/Users/${device.user}"
else lib.mkForce "/home/${device.user}";
file = {
".config/fish/themes".source = pkgs.catppuccinThemes.fish + "/themes";
@@ -60,7 +61,10 @@
EDITOR = "nvim";
SHELL = "${pkgs.bash}/bin/bash";
CARGO_TARGET_DIR = "${config.xdg.cacheHome}/cargo/target";
BROWSER = if device.isDarwin then "open" else "xdg-open";
BROWSER =
if device.isDarwin
then "open"
else "xdg-open";
};
sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"

View File

@@ -2,8 +2,7 @@
pkgs,
device,
...
}:
{
}: {
imports = [
../../modules
./aichat.nix
@@ -48,8 +47,7 @@
# ./template.nix
# ./zellij.nix
];
home.packages =
with pkgs;
home.packages = with pkgs;
[
_1password-cli
alejandra

View File

@@ -2,8 +2,7 @@
pkgs,
lib,
...
}:
{
}: {
imports = [
./goread.nix
./hyprpaper.nix

View File

@@ -2,23 +2,21 @@
pkgs,
# config,
...
}:
let
mkMappings =
mappings:
}: let
mkMappings = mappings:
[]
++ (pkgs.lib.optionals (builtins.hasAttr "normal" mappings) (mkMode mappings.normal "n"))
++ (pkgs.lib.optionals (builtins.hasAttr "terminal" mappings) (mkMode mappings.terminal "t"))
++ (pkgs.lib.optionals (builtins.hasAttr "insert" mappings) (mkMode mappings.insert "i"))
++ (pkgs.lib.optionals (builtins.hasAttr "visual" mappings) (mkMode mappings.visual "v"))
++ (pkgs.lib.optionals (builtins.hasAttr "global" mappings) (mkMode mappings.global ""));
mkMode =
mappings: mode:
mkMode = mappings: mode:
pkgs.lib.mapAttrsToList (key: value: {
key = key;
action = rawLua value;
mode = mode;
}) mappings;
})
mappings;
border = [
""
""
@@ -34,8 +32,7 @@ let
${lua}
'';
};
in
{
in {
opts = {
completeopt = "menu,menuone,popup,noselect";
expandtab = true;
@@ -447,19 +444,16 @@ in
};
};
};
dap =
let
dap = let
vscode-lldb = pkgs.vscode-extensions.vadimcn.vscode-lldb;
liblldb =
if pkgs.stdenv.isLinux then
"${vscode-lldb.lldb}/lib/liblldb.so"
else if pkgs.stdenv.isDarwin then
"${vscode-lldb.lldb}/lib/liblldb.dylib"
else
null;
if pkgs.stdenv.isLinux
then "${vscode-lldb.lldb}/lib/liblldb.so"
else if pkgs.stdenv.isDarwin
then "${vscode-lldb.lldb}/lib/liblldb.dylib"
else null;
codelldb = "${vscode-lldb.adapter}/bin/codelldb";
in
{
in {
autoload_configurations = false;
# adapter =
# /*
@@ -788,8 +782,8 @@ in
pkgs.tree-sitter-grammars.tree-sitter-norg-meta
pkgs.tree-sitter-grammars.tree-sitter-nu
];
extraLuaPackages =
luaPkgs: with luaPkgs; [
extraLuaPackages = luaPkgs:
with luaPkgs; [
lua-utils-nvim
nvim-nio
pathlib-nvim

View File

@@ -1,11 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
@@ -13,13 +17,13 @@
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1f72dde1-a713-4e69-a272-39a8324368c2";
fileSystems."/" = {
device = "/dev/disk/by-uuid/1f72dde1-a713-4e69-a272-39a8324368c2";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2CFD-2F25";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2CFD-2F25";
fsType = "vfat";
};

View File

@@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
imports = [
./atuin.nix
./authelia.nix

View File

@@ -3,8 +3,7 @@
config,
pkgs,
...
}:
{
}: {
virtualisation.docker.enable = true;
sops = {
# secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
@@ -141,8 +140,7 @@
};
};
systemd.services.gitea-oauth-setup =
let
systemd.services.gitea-oauth-setup = let
name = "authelia";
gitea_oauth_script = pkgs.writeShellApplication {
name = "gitea_oauth2_script";
@@ -152,8 +150,7 @@
gitea admin auth add-oauth --provider=openidConnect --name=${name} --key="$CLIENT_ID" --secret="$CLIENT_SECRET" --auto-discover-url=https://auth.darksailor.dev/.well-known/openid-configuration --scopes='openid email profile'
'';
};
in
{
in {
description = "Configure Gitea OAuth with Authelia";
after = ["gitea.service"];
wants = ["gitea.service"];

View File

@@ -1,5 +1,4 @@
{ config, ... }:
{
{config, ...}: {
services = {
grafana = {
enable = true;

View File

@@ -3,8 +3,7 @@
pkgs,
inputs,
...
}:
{
}: {
sops = {
secrets."llama/api_key".owner = config.services.caddy.user;
secrets."llama/user".owner = config.services.caddy.user;

View File

@@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
imports = [
# ./rsyncd.nix
# ./sunshine.nix

View File

@@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
services = {
prometheus = {
exporters = {

View File

@@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
services = {
hardware.openrgb.enable = true;
};

View File

@@ -83,4 +83,3 @@
# Optional: Enable looking glass for low-latency VM display
}

View File

@@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
imports = [
./tailscale.nix
./samba.nix

View File

@@ -1,5 +1,4 @@
{ ... }:
{
{...}: {
services = {
prometheus = {
exporters = {