add alejandra formatter
This commit is contained in:
parent
93d38992e1
commit
1f69ba4229
29 changed files with 405 additions and 326 deletions
|
@ -1,14 +1,16 @@
|
|||
# Edet this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
imports =
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration-custom.nix
|
||||
];
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration-custom.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
@ -51,7 +53,7 @@
|
|||
hardware.pulseaudio.enable = true;
|
||||
|
||||
programs.zsh.enable = true;
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
environment.pathsToLink = ["/share/zsh"];
|
||||
|
||||
users = {
|
||||
users.fabian = {
|
||||
|
@ -59,7 +61,7 @@
|
|||
uid = 1002; # nunca cambiar mi ID de usuario
|
||||
group = "fabian";
|
||||
shell = pkgs.zsh;
|
||||
extraGroups = [ "users" "wheel" "networkmanager" "dialout" "libvirtd" ];
|
||||
extraGroups = ["users" "wheel" "networkmanager" "dialout" "libvirtd"];
|
||||
};
|
||||
groups.fabian.gid = 1002;
|
||||
};
|
||||
|
@ -70,14 +72,14 @@
|
|||
|
||||
users.users.temp = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm;
|
||||
virtualisation.libvirtd.qemu.ovmf.enable = true;
|
||||
virtualisation.libvirtd.qemu.ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
virtualisation.libvirtd.qemu.ovmf.packages = [pkgs.OVMFFull.fd];
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
# boot.kernelModules = [ "vfio" "vfio_iommu_type1" "vfio_pci" "vfio_virqfd" ];
|
||||
|
@ -101,5 +103,4 @@
|
|||
};
|
||||
|
||||
system.stateVersion = "21.11"; # No tocar esto
|
||||
|
||||
}
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
let
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
subvol = subvol: {
|
||||
device = "/dev/disk/by-uuid/645fdba0-5c03-4285-926b-facded1ee259";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=${subvol}" "compress=zstd" "noatime" "ssd" ];
|
||||
options = ["subvol=${subvol}" "compress=zstd" "noatime" "ssd"];
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
||||
luks.devices."toplevel" = {
|
||||
device = "/dev/disk/by-uuid/58277baa-90d4-4a5e-a658-1b918b89130a";
|
||||
preLVM = false;
|
||||
|
@ -29,17 +29,15 @@ in
|
|||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/B007-B007";
|
||||
fsType = "vfat";
|
||||
options = [ "umask=027" ];
|
||||
options = ["umask=027"];
|
||||
};
|
||||
|
||||
"/extern" = {
|
||||
device = "/dev/disk/by-uuid/7d8d3ec9-b456-4e2a-9396-551dcaf7705b";
|
||||
fsType = "btrfs";
|
||||
options = [ "noatime" "compress=zstd" ];
|
||||
options = ["noatime" "compress=zstd"];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{ }
|
||||
{}
|
||||
|
|
Reference in a new issue