Format using alejandra
All checks were successful
/ Build Nix targets (push) Successful in 3m36s

This commit is contained in:
Théo Barnouin 2025-01-23 14:13:19 +01:00
parent 1a25b198ef
commit 781ce2d5e9
24 changed files with 610 additions and 505 deletions

View file

@ -1,11 +1,15 @@
{ config, lib, pkgs, ... }:
{ imports = [ ./hardware-configuration.nix ];
{
config,
lib,
pkgs,
...
}: {
imports = [./hardware-configuration.nix];
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "@wheel" ];
experimental-features = ["nix-command" "flakes"];
trusted-users = ["@wheel"];
auto-optimise-store = true;
};
gc = {
@ -17,9 +21,9 @@
security.sudo.wheelNeedsPassword = false;
networking= {
networking = {
useNetworkd = true;
firewall.allowedTCPPorts = [ 22 ];
firewall.allowedTCPPorts = [22];
};
systemd.network = {
@ -104,5 +108,4 @@
};
system.stateVersion = "24.11"; # Did you read the comment?
}

View file

@ -1,13 +1,15 @@
{ lib, system, ... }:
{
lib,
system,
...
}: {
boot = {
# use latest kernel
# kernelPackages = pkgs.linuxPackages_latest;
supportedFilesystems = [ "ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs" ];
supportedFilesystems = ["ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs"];
growPartition = true;
kernelModules = [ "kvm-intel" ];
kernelParams = lib.mkForce [ ];
kernelModules = ["kvm-intel"];
kernelParams = lib.mkForce [];
loader = {
grub = {
@ -20,8 +22,8 @@
};
initrd = {
availableKernelModules = [ "9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi" ];
kernelModules = [ "virtio_balloon" "virtio_console" "virtio_rng" ];
availableKernelModules = ["9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi"];
kernelModules = ["virtio_balloon" "virtio_console" "virtio_rng"];
};
tmp.cleanOnBoot = true;
@ -45,7 +47,6 @@
};
};
services.fstrim = {
enable = true;
interval = "weekly";

View file

@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
home = {
username = "tbarnouin";
stateVersion = "24.11";
@ -75,17 +78,16 @@
};
oh-my-zsh = {
enable = true;
plugins =
[
"git"
"terraform"
"sudo"
"docker"
"pip"
"python"
"pyenv"
"pipenv"
];
plugins = [
"git"
"terraform"
"sudo"
"docker"
"pip"
"python"
"pyenv"
"pipenv"
];
theme = "bira";
};
};

View file

@ -1,11 +1,15 @@
{ config, lib, pkgs, ... }:
{ imports = [ ./hardware-configuration.nix ];
{
config,
lib,
pkgs,
...
}: {
imports = [./hardware-configuration.nix];
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "@wheel" ];
experimental-features = ["nix-command" "flakes"];
trusted-users = ["@wheel"];
auto-optimise-store = true;
};
gc = {
@ -17,9 +21,9 @@
security.sudo.wheelNeedsPassword = false;
networking= {
networking = {
useNetworkd = true;
firewall.allowedTCPPorts = [ 22 ];
firewall.allowedTCPPorts = [22];
};
systemd.network = {
@ -104,5 +108,4 @@
};
system.stateVersion = "24.11"; # Did you read the comment?
}

View file

@ -1,13 +1,15 @@
{ lib, system, ... }:
{
lib,
system,
...
}: {
boot = {
# use latest kernel
# kernelPackages = pkgs.linuxPackages_latest;
supportedFilesystems = [ "ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs" ];
supportedFilesystems = ["ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs"];
growPartition = true;
kernelModules = [ "kvm-intel" ];
kernelParams = lib.mkForce [ ];
kernelModules = ["kvm-intel"];
kernelParams = lib.mkForce [];
loader = {
grub = {
@ -20,8 +22,8 @@
};
initrd = {
availableKernelModules = [ "9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi" ];
kernelModules = [ "virtio_balloon" "virtio_console" "virtio_rng" ];
availableKernelModules = ["9p" "9pnet_virtio" "ata_piix" "uhci_hcd" "virtio_blk" "virtio_mmio" "virtio_net" "virtio_pci" "virtio_scsi"];
kernelModules = ["virtio_balloon" "virtio_console" "virtio_rng"];
};
tmp.cleanOnBoot = true;

View file

@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
home = {
username = "tbarnouin";
stateVersion = "24.11";
@ -75,17 +78,16 @@
};
oh-my-zsh = {
enable = true;
plugins =
[
"git"
"terraform"
"sudo"
"docker"
"pip"
"python"
"pyenv"
"pipenv"
];
plugins = [
"git"
"terraform"
"sudo"
"docker"
"pip"
"python"
"pyenv"
"pipenv"
];
theme = "bira";
};
};