chore: reinit

This commit is contained in:
Thiago Sposito 2025-08-25 22:42:48 -03:00
parent 095e9f4f6b
commit 3027322470
Signed by: thiago
GPG key ID: 3065EA73A976D430
29 changed files with 1215 additions and 528 deletions

View file

@ -48,7 +48,6 @@
neovim
nil
nixpkgs-fmt
rclone
wget
];

View file

@ -1,68 +0,0 @@
{ config, lib, ... }:
{
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
esp = {
size = "512M";
start = "1M";
type = "EF00";
label = "EFI";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
swap = {
size = "16G";
type = "8200";
label = "Swap";
content = {
type = "swap";
randomEncryption = false;
};
};
root = {
type = "8300";
label = "NixOS";
size = "870G";
content = {
type = "btrfs";
mountpoint = "/";
subvolumes = {
"@root" = {
mountpoint = "/";
};
"@nix" = {
mountpoint = "/nix";
};
"@home" = {
mountpoint = "/home";
};
"@log" = {
mountpoint = "/var/log";
};
};
extraArgs = [
"-L"
"nixos-root"
];
mountOptions = [
"compress=zstd"
"noatime"
];
};
};
};
};
};
};
}

View file

@ -1,8 +1,6 @@
{ config
, lib
, pkgs
, modulesPath
, inputs
, ...
}:
@ -25,6 +23,11 @@
extraModulePackages = [ ];
};
fileSystems."/" = {
device = "/dev/nvme0n1";
fsType = "btrfs";
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;