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

@ -8,7 +8,8 @@ let
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 = {

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 = [
@ -88,7 +99,6 @@ in
programs = {
git = {
enable = true;
settings = {
@ -118,7 +128,8 @@ in
user = {
email = "th.spo@pm.me";
name = "Thiago Sposito";
};};
};
};
};
gpg = {

View file

@ -17,9 +17,11 @@
# Compile Fennel to Lua at build time
home.file.".config/nvim/extraconfig.lua" = {
text = builtins.readFile (
pkgs.runCommand "extraconfig-compiled.lua" {
pkgs.runCommand "extraconfig-compiled.lua"
{
buildInputs = [ pkgs.luajitPackages.fennel ];
} ''
}
''
${pkgs.luajitPackages.fennel}/bin/fennel --compile ${./extraconfig.fnl} > $out
''
);

View file

@ -1,7 +1,8 @@
{ config
, lib
, modulesPath
, ...
{
config,
lib,
modulesPath,
...
}:
{
@ -23,29 +24,25 @@
extraModulePackages = [ ];
};
fileSystems."/" =
{
fileSystems."/" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@root" ];
};
fileSystems."/nix" =
{
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@nix" ];
};
fileSystems."/var/log" =
{
fileSystems."/var/log" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@log" ];
};
fileSystems."/home" =
{
fileSystems."/home" = {
device = "/dev/disk/by-uuid/492e3157-429e-4b9b-995f-c341c83b17ab";
fsType = "btrfs";
options = [ "subvol=@home" ];
@ -54,7 +51,10 @@
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

@ -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 @@
};
};
}