auto-format

This commit is contained in:
boyreau 2026-06-15 11:50:02 +02:00
commit 2a7665feba
5 changed files with 106 additions and 39 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
boot = {
@ -28,9 +33,29 @@
cryptsetup
];
};
kernelModules = [ "cryptd" "uas" "usbcore" "usb_storage" "vfat" "nls_cp437" "nls_iso8859_1" ];
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "rtsx_pci_sdmmc" "dm_crypt" "crypto_user" ];
supportedFilesystems = [ "btrfs" "vfat" "luks" ];
kernelModules = [
"cryptd"
"uas"
"usbcore"
"usb_storage"
"vfat"
"nls_cp437"
"nls_iso8859_1"
];
availableKernelModules = [
"xhci_pci"
"nvme"
"usbhid"
"usb_storage"
"rtsx_pci_sdmmc"
"dm_crypt"
"crypto_user"
];
supportedFilesystems = [
"btrfs"
"vfat"
"luks"
];
};
kernel.sysctl."kernel.sysrq" = 1;
};

View file

@ -2,11 +2,16 @@
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports =
[ # Include the results of the hardware scan.
imports = [
# Include the results of the hardware scan.
./security.nix
./hardware-configuration.nix
./hardware.nix
@ -21,10 +26,16 @@
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
virtualisation.waydroid = {
virtualisation = {
waydroid = {
enable = true;
package = pkgs.waydroid-nftables;
};
docker = {
enable = true;
storageDriver = "btrfs";
};
};
programs.steam.enable = true;
@ -55,13 +66,22 @@
defaultUnit = "graphical.target";
services."getty@tty1" = {
overrideStrategy = "asDropin";
serviceConfig.ExecStart = ["" "@${pkgs.util-linux}/sbin/agetty agetty --login-program ${config.services.getty.loginProgram} --autologin zo --noclear --keep-baud %I 115200,38400,9600 $TERM"];
serviceConfig.ExecStart = [
""
"@${pkgs.util-linux}/sbin/agetty agetty --login-program ${config.services.getty.loginProgram} --autologin zo --noclear --keep-baud %I 115200,38400,9600 $TERM"
];
};
};
users.users.zo = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" "network" ];
extraGroups = [
"wheel"
"audio"
"video"
"network"
"docker"
];
packages = [ pkgs.home-manager ];
shell = pkgs.bash;
};
@ -84,6 +104,7 @@
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
font-awesome
];
# Copy the NixOS configuration file and link it from the resulting system
@ -111,4 +132,3 @@
system.stateVersion = "26.05"; # Did you read the comment?
}

View file

@ -1,11 +1,17 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.kernelParams = [ "i915.modeset=1" ];
@ -23,11 +29,14 @@
fileSystems."/mnt/games" = {
device = "/dev/mapper/safe";
fsType = "btrfs";
options = [ "ssd" "lazytime" "subvol=game" ];
options = [
"ssd"
"lazytime"
"subvol=game"
];
};
fileSystems."/boot/efi" =
{
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/4FD7-458E";
fsType = "vfat";
};

View file

@ -1,10 +1,18 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
services.xserver.videoDrivers = [ "nvidia" ];
services.printing.enable = true;
services.printing.drivers = [ pkgs.epson-escpr pkgs.epsonscan2 ];
services.printing.drivers = [
pkgs.epson-escpr
pkgs.epsonscan2
];
boot.kernelParams = [
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
networking.nftables.enable = true;