[fix] *.nix: statix checks

This commit is contained in:
Jalil David Salamé Messina 2024-05-17 18:50:01 +02:00
parent 15a60141ad
commit c19ceb54b7
Signed by: jalil
GPG key ID: F016B9E770737A0B
18 changed files with 728 additions and 626 deletions

View file

@ -11,40 +11,46 @@
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd
];
fileSystems."/".options = ["compress=zstd"];
fileSystems."/steam".options = ["compress=zstd"];
fileSystems."/home".options = ["compress=zstd"];
fileSystems."/nix".options = [
"compress=zstd"
"noatime"
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 3;
boot.loader.efi.canTouchEfiVariables = true;
fileSystems = {
"/".options = ["compress=zstd"];
"/steam".options = ["compress=zstd"];
"/home".options = ["compress=zstd"];
"/nix".options = [
"compress=zstd"
"noatime"
];
};
boot.loader = {
systemd-boot = {
# Use the systemd-boot EFI boot loader.
enable = true;
configurationLimit = 3;
};
efi.canTouchEfiVariables = true;
};
# Enable bluetooth
hardware.bluetooth.enable = true;
networking.hostName = "gemini";
networking.networkmanager.enable = true;
networking.interfaces.enp4s0.wakeOnLan.enable = true;
networking = {
hostName = "gemini";
networkmanager.enable = true;
interfaces.enp4s0.wakeOnLan.enable = true;
};
console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
useXkbConfig = true; # use xkbOptions in tty.
};
# Configure keymap in X11
# services.xserver.xkbOptions = {
# "caps:swapescape" # map caps to escape.
# };
services.openssh.enable = true;
services.openssh.startWhenNeeded = true;
services.openssh.settings.AllowUsers = ["jalil"];
services.openssh = {
# Configure keymap in X11
# services.xserver.xkbOptions = {
# "caps:swapescape" # map caps to escape.
# };
enable = true;
startWhenNeeded = true;
settings.AllowUsers = ["jalil"];
};
# Enable CUPS to print documents.
services.printing.enable = true;

View file

@ -8,46 +8,50 @@
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" = {
# device = "/dev/disk/by-label/NIXOSROOT";
device = "/dev/disk/by-label/NIXOSHOME";
fsType = "btrfs";
options = ["subvol=root"];
boot = {
initrd = {
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
kernelModules = [];
};
kernelModules = ["kvm-amd"];
extraModulePackages = [];
};
fileSystems = {
"/" = {
# device = "/dev/disk/by-label/NIXOSROOT";
device = "/dev/disk/by-label/NIXOSHOME";
fsType = "btrfs";
options = ["subvol=root"];
};
fileSystems."/steam" = {
device = "/dev/disk/by-label/STEAM";
fsType = "btrfs";
};
"/steam" = {
device = "/dev/disk/by-label/STEAM";
fsType = "btrfs";
};
fileSystems."/home" = {
device = "/dev/disk/by-label/NIXOSHOME";
fsType = "btrfs";
options = ["subvol=home"];
};
"/home" = {
device = "/dev/disk/by-label/NIXOSHOME";
fsType = "btrfs";
options = ["subvol=home"];
};
fileSystems."/nix" = {
device = "/dev/disk/by-label/NIXOSROOT";
fsType = "btrfs";
options = ["subvol=nix"];
};
"/nix" = {
device = "/dev/disk/by-label/NIXOSROOT";
fsType = "btrfs";
options = ["subvol=nix"];
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
"/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
};
swapDevices = [{device = "/dev/disk/by-label/SWAP";}];