chore: autoformat

This commit is contained in:
Thiago Sposito 2026-01-10 21:54:04 -03:00
parent 337ee6db4a
commit be381d1ebd
Signed by: thiago
GPG key ID: 3065EA73A976D430
18 changed files with 158 additions and 116 deletions

View file

@ -5,7 +5,8 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
@ -20,4 +21,3 @@
};
};
}

View file

@ -1,4 +1,11 @@
{ config, lib, pkgs, sops, secrets, ... }:
{
config,
lib,
pkgs,
sops,
secrets,
...
}:
{
# --- sops secret integration ---

View file

@ -6,9 +6,10 @@ let
rev = "393b8fbe74b0382a9cf7cbfd33e2a3e2b430ba71";
};
mojo = pkgs.callPackage (noverbySrc + "/packages/mojo.nix") { };
mojo = pkgs.callPackage (noverbySrc + "/packages/mojo.nix") { };
magic = pkgs.callPackage (noverbySrc + "/packages/magic.nix") { };
in {
in
{
home.packages = [
mojo
magic

View file

@ -1,4 +1,9 @@
{ pkgs, lib, config, ... }:
{
pkgs,
lib,
config,
...
}:
{
programs.emacs = {
@ -19,7 +24,7 @@
sbcl
];
home.activation.linkDoomConfig = lib.hm.dag.entryAfter ["writeBoundary"] ''
home.activation.linkDoomConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ ! -e "${config.home.homeDirectory}/.config/doom" ]; then
$DRY_RUN_CMD mkdir -p "${config.home.homeDirectory}/.config"
$DRY_RUN_CMD ln -sfn "/home/thiago/.config/nix-conf/home-manager/emacs/doom" "${config.home.homeDirectory}/.config/doom"

View file

@ -3,7 +3,7 @@
{
dconf.settings = {
"org/gnome/desktop/interface" = {
"org/gnome/desktop/interface" = {
gtk-theme = "Adwaita-dark";
};
"org/gnome/shell" = {

View file

@ -5,7 +5,18 @@
...
}:
let
pkgsUnstable = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux;
pkgsUnstable = import inputs.nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"code-cursor"
"cursor"
"cursor-cli"
"vscode"
];
};
in
{
imports = [
@ -81,44 +92,44 @@ in
];
sessionVariables = {
# DBUS_SESSION_BUS_ADDRESS = "unix:path=${config.home.homeDirectory}/.dbus-session-bus";
# DBUS_SESSION_BUS_ADDRESS = "unix:path=${config.home.homeDirectory}/.dbus-session-bus";
};
username = "thiago";
};
programs = {
git = {
enable = true;
settings = {
aliases = {
br = "branch";
ca = "commit --amend";
can = "commit --amend --no-edit";
ci = "commit";
co = "checkout";
lg = "log --oneline --graph --decorate --all";
st = "status";
};
extraConfig = {
color.ui = "auto";
core = {
editor = "nvim";
autocrlf = "input";
aliases = {
br = "branch";
ca = "commit --amend";
can = "commit --amend --no-edit";
ci = "commit";
co = "checkout";
lg = "log --oneline --graph --decorate --all";
st = "status";
};
extraConfig = {
color.ui = "auto";
core = {
editor = "nvim";
autocrlf = "input";
};
init.defaultBranch = "main";
pull.rebase = true;
};
lfs.enable = true;
signing = {
key = "EC7C84664FF515B63AD510B63065EA73A976D430";
signByDefault = false;
};
user = {
email = "th.spo@pm.me";
name = "Thiago Sposito";
};
init.defaultBranch = "main";
pull.rebase = true;
};
lfs.enable = true;
signing = {
key = "EC7C84664FF515B63AD510B63065EA73A976D430";
signByDefault = false;
};
user = {
email = "th.spo@pm.me";
name = "Thiago Sposito";
};};
};
gpg = {

View file

@ -17,11 +17,13 @@
# Compile Fennel to Lua at build time
home.file.".config/nvim/extraconfig.lua" = {
text = builtins.readFile (
pkgs.runCommand "extraconfig-compiled.lua" {
buildInputs = [ pkgs.luajitPackages.fennel ];
} ''
${pkgs.luajitPackages.fennel}/bin/fennel --compile ${./extraconfig.fnl} > $out
''
pkgs.runCommand "extraconfig-compiled.lua"
{
buildInputs = [ pkgs.luajitPackages.fennel ];
}
''
${pkgs.luajitPackages.fennel}/bin/fennel --compile ${./extraconfig.fnl} > $out
''
);
};
programs.nixvim = {
@ -103,7 +105,7 @@
src = pkgs.fetchFromGitHub {
owner = "m15a";
repo = "vim-fennel-syntax";
rev = "e7299d5"; #v1.3.0
rev = "e7299d5"; # v1.3.0
hash = "sha256-CL3ooywWpGicmzine9qteHTGajAZ2qnIcK9CByaONvc=";
};
})

View file

@ -1,7 +1,8 @@
{ config
, lib
, modulesPath
, ...
{
config,
lib,
modulesPath,
...
}:
{
@ -23,38 +24,37 @@
extraModulePackages = [ ];
};
fileSystems."/" =
{
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@root" ];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@root" ];
};
fileSystems."/nix" =
{
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@nix" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@nix" ];
};
fileSystems."/var/log" =
{
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@log" ];
};
fileSystems."/var/log" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@log" ];
};
fileSystems."/home" =
{
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/50A0-7758";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [

View file

@ -5,7 +5,15 @@
nixpkgs.hostPlatform = "x86_64-linux";
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"xen_blkfront"
"vmw_pvscsi"
];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
}

View file

@ -1,8 +1,9 @@
{ config
, lib
, modulesPath
, pkgs
, ...
{
config,
lib,
modulesPath,
pkgs,
...
}:
{
@ -21,7 +22,8 @@
"sd_mod"
"xhci_pci"
];
kernelParams = [ # used to improve VM perfomance (guix experiments)
kernelParams = [
# used to improve VM perfomance (guix experiments)
"amd_pstate=active"
"usbcore.autosuspend=-1"
"hugepagesz=1G"
@ -29,7 +31,10 @@
"default_hugepagesz=1G"
];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-amd" "iwlwifi" ];
kernelModules = [
"kvm-amd"
"iwlwifi"
];
extraModulePackages = [ ];
};
fileSystems = {

View file

@ -15,12 +15,12 @@
(final: prev: {
libnitrokey = prev.libnitrokey.overrideAttrs (old: {
cmakeFlags = (old.cmakeFlags or [ ]) ++ [
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
];
});
epsonscan2 = prev.epsonscan2.overrideAttrs (old: {
cmakeFlags = (old.cmakeFlags or [ ]) ++ [
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
];
});
})

View file

@ -38,7 +38,7 @@
# openssh.settings.X11Forwarding = true;
};
virtualisation ={
virtualisation = {
docker = {
enable = true;
logDriver = "journald";
@ -71,21 +71,21 @@
"guest account" = "nobody";
"map to guest" = "bad user";
security = "user";
# used for xp priter vm
# # Windows XP compatibility settings
# "server min protocol" = "NT1"; # Enable SMB1 for Windows XP
# "client min protocol" = "NT1";
# "ntlm auth" = "yes"; # Required for Windows XP
# "lanman auth" = "yes"; # Required for Windows XP
# };
# # Share for Windows XP access
# "shared" = {
# "path" = "/home/thiago/shared";
# "browseable" = "yes";
# "read only" = "no";
# "guest ok" = "yes";
# "create mask" = "0644";
# "directory mask" = "0755";
# used for xp priter vm
# # Windows XP compatibility settings
# "server min protocol" = "NT1"; # Enable SMB1 for Windows XP
# "client min protocol" = "NT1";
# "ntlm auth" = "yes"; # Required for Windows XP
# "lanman auth" = "yes"; # Required for Windows XP
# };
# # Share for Windows XP access
# "shared" = {
# "path" = "/home/thiago/shared";
# "browseable" = "yes";
# "read only" = "no";
# "guest ok" = "yes";
# "create mask" = "0644";
# "directory mask" = "0755";
};
};
};

View file

@ -1,6 +1,7 @@
{ pkgs
, config
, ...
{
pkgs,
config,
...
}:
{
boot = {

View file

@ -1,6 +1,7 @@
# Under maintanence
{ pkgs
, ...
{
pkgs,
...
}:
let
# Optional helper for manual (re)binding at runtime

View file

@ -5,11 +5,13 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
outputs =
{ self, nixpkgs, ... }:
let
system = "aarch64-linux";
pkgs = import nixpkgs { inherit system; };
in {
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
git
@ -26,4 +28,3 @@
};
};
}