chore: Formatting
All checks were successful
Flake checker / Build Nix targets (push) Successful in 9m26s
All checks were successful
Flake checker / Build Nix targets (push) Successful in 9m26s
This commit is contained in:
@@ -5,8 +5,7 @@
|
|||||||
lib,
|
lib,
|
||||||
device,
|
device,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nix-index-database.homeModules.nix-index
|
inputs.nix-index-database.homeModules.nix-index
|
||||||
../modules
|
../modules
|
||||||
@@ -34,7 +33,9 @@
|
|||||||
home = {
|
home = {
|
||||||
username = device.user;
|
username = device.user;
|
||||||
homeDirectory =
|
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 = {
|
file = {
|
||||||
".config/fish/themes".source = pkgs.catppuccinThemes.fish + "/themes";
|
".config/fish/themes".source = pkgs.catppuccinThemes.fish + "/themes";
|
||||||
@@ -60,7 +61,10 @@
|
|||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
SHELL = "${pkgs.bash}/bin/bash";
|
SHELL = "${pkgs.bash}/bin/bash";
|
||||||
CARGO_TARGET_DIR = "${config.xdg.cacheHome}/cargo/target";
|
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 = [
|
sessionPath = [
|
||||||
"${config.home.homeDirectory}/.cargo/bin"
|
"${config.home.homeDirectory}/.cargo/bin"
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
device,
|
device,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
./aichat.nix
|
./aichat.nix
|
||||||
@@ -48,8 +47,7 @@
|
|||||||
# ./template.nix
|
# ./template.nix
|
||||||
# ./zellij.nix
|
# ./zellij.nix
|
||||||
];
|
];
|
||||||
home.packages =
|
home.packages = with pkgs;
|
||||||
with pkgs;
|
|
||||||
[
|
[
|
||||||
_1password-cli
|
_1password-cli
|
||||||
alejandra
|
alejandra
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./goread.nix
|
./goread.nix
|
||||||
./hyprpaper.nix
|
./hyprpaper.nix
|
||||||
|
|||||||
@@ -2,23 +2,21 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
# config,
|
# config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
mkMappings = mappings:
|
||||||
mkMappings =
|
|
||||||
mappings:
|
|
||||||
[]
|
[]
|
||||||
++ (pkgs.lib.optionals (builtins.hasAttr "normal" mappings) (mkMode mappings.normal "n"))
|
++ (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 "terminal" mappings) (mkMode mappings.terminal "t"))
|
||||||
++ (pkgs.lib.optionals (builtins.hasAttr "insert" mappings) (mkMode mappings.insert "i"))
|
++ (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 "visual" mappings) (mkMode mappings.visual "v"))
|
||||||
++ (pkgs.lib.optionals (builtins.hasAttr "global" mappings) (mkMode mappings.global ""));
|
++ (pkgs.lib.optionals (builtins.hasAttr "global" mappings) (mkMode mappings.global ""));
|
||||||
mkMode =
|
mkMode = mappings: mode:
|
||||||
mappings: mode:
|
|
||||||
pkgs.lib.mapAttrsToList (key: value: {
|
pkgs.lib.mapAttrsToList (key: value: {
|
||||||
key = key;
|
key = key;
|
||||||
action = rawLua value;
|
action = rawLua value;
|
||||||
mode = mode;
|
mode = mode;
|
||||||
}) mappings;
|
})
|
||||||
|
mappings;
|
||||||
border = [
|
border = [
|
||||||
"╭"
|
"╭"
|
||||||
"─"
|
"─"
|
||||||
@@ -34,8 +32,7 @@ let
|
|||||||
${lua}
|
${lua}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
opts = {
|
opts = {
|
||||||
completeopt = "menu,menuone,popup,noselect";
|
completeopt = "menu,menuone,popup,noselect";
|
||||||
expandtab = true;
|
expandtab = true;
|
||||||
@@ -447,19 +444,16 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dap =
|
dap = let
|
||||||
let
|
|
||||||
vscode-lldb = pkgs.vscode-extensions.vadimcn.vscode-lldb;
|
vscode-lldb = pkgs.vscode-extensions.vadimcn.vscode-lldb;
|
||||||
liblldb =
|
liblldb =
|
||||||
if pkgs.stdenv.isLinux then
|
if pkgs.stdenv.isLinux
|
||||||
"${vscode-lldb.lldb}/lib/liblldb.so"
|
then "${vscode-lldb.lldb}/lib/liblldb.so"
|
||||||
else if pkgs.stdenv.isDarwin then
|
else if pkgs.stdenv.isDarwin
|
||||||
"${vscode-lldb.lldb}/lib/liblldb.dylib"
|
then "${vscode-lldb.lldb}/lib/liblldb.dylib"
|
||||||
else
|
else null;
|
||||||
null;
|
|
||||||
codelldb = "${vscode-lldb.adapter}/bin/codelldb";
|
codelldb = "${vscode-lldb.adapter}/bin/codelldb";
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
autoload_configurations = false;
|
autoload_configurations = false;
|
||||||
# adapter =
|
# adapter =
|
||||||
# /*
|
# /*
|
||||||
@@ -788,8 +782,8 @@ in
|
|||||||
pkgs.tree-sitter-grammars.tree-sitter-norg-meta
|
pkgs.tree-sitter-grammars.tree-sitter-norg-meta
|
||||||
pkgs.tree-sitter-grammars.tree-sitter-nu
|
pkgs.tree-sitter-grammars.tree-sitter-nu
|
||||||
];
|
];
|
||||||
extraLuaPackages =
|
extraLuaPackages = luaPkgs:
|
||||||
luaPkgs: with luaPkgs; [
|
with luaPkgs; [
|
||||||
lua-utils-nvim
|
lua-utils-nvim
|
||||||
nvim-nio
|
nvim-nio
|
||||||
pathlib-nvim
|
pathlib-nvim
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];
|
||||||
@@ -13,13 +17,13 @@
|
|||||||
boot.kernelModules = ["kvm-intel"];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/1f72dde1-a713-4e69-a272-39a8324368c2";
|
device = "/dev/disk/by-uuid/1f72dde1-a713-4e69-a272-39a8324368c2";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/2CFD-2F25";
|
device = "/dev/disk/by-uuid/2CFD-2F25";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./atuin.nix
|
./atuin.nix
|
||||||
./authelia.nix
|
./authelia.nix
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
sops = {
|
sops = {
|
||||||
# secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
|
# secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
|
||||||
@@ -141,8 +140,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.gitea-oauth-setup =
|
systemd.services.gitea-oauth-setup = let
|
||||||
let
|
|
||||||
name = "authelia";
|
name = "authelia";
|
||||||
gitea_oauth_script = pkgs.writeShellApplication {
|
gitea_oauth_script = pkgs.writeShellApplication {
|
||||||
name = "gitea_oauth2_script";
|
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'
|
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";
|
description = "Configure Gitea OAuth with Authelia";
|
||||||
after = ["gitea.service"];
|
after = ["gitea.service"];
|
||||||
wants = ["gitea.service"];
|
wants = ["gitea.service"];
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
services = {
|
services = {
|
||||||
grafana = {
|
grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
sops = {
|
sops = {
|
||||||
secrets."llama/api_key".owner = config.services.caddy.user;
|
secrets."llama/api_key".owner = config.services.caddy.user;
|
||||||
secrets."llama/user".owner = config.services.caddy.user;
|
secrets."llama/user".owner = config.services.caddy.user;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
# ./rsyncd.nix
|
# ./rsyncd.nix
|
||||||
# ./sunshine.nix
|
# ./sunshine.nix
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
services = {
|
services = {
|
||||||
prometheus = {
|
prometheus = {
|
||||||
exporters = {
|
exporters = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
services = {
|
services = {
|
||||||
hardware.openrgb.enable = true;
|
hardware.openrgb.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -83,4 +83,3 @@
|
|||||||
|
|
||||||
# Optional: Enable looking glass for low-latency VM display
|
# Optional: Enable looking glass for low-latency VM display
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
./samba.nix
|
./samba.nix
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{...}: {
|
||||||
{
|
|
||||||
services = {
|
services = {
|
||||||
prometheus = {
|
prometheus = {
|
||||||
exporters = {
|
exporters = {
|
||||||
|
|||||||
Reference in New Issue
Block a user