summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2024-12-01 23:26:31 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2024-12-01 23:26:31 +0100
commit260f1a98f2b335050cf11a67b60541073188b35d (patch)
treeeb2e99cb04c3c3cfcc9df84781b125ee4aae56ed /config
parentdd522a472f2264c1ec0e12c20a1c82648ef352c6 (diff)
reinstall
Diffstat (limited to 'config')
-rw-r--r--config/hardware/default.nix4
-rw-r--r--config/hardware/hardware-configuration.nix43
2 files changed, 25 insertions, 22 deletions
diff --git a/config/hardware/default.nix b/config/hardware/default.nix
index 162a94a..6b8b76e 100644
--- a/config/hardware/default.nix
+++ b/config/hardware/default.nix
@@ -9,7 +9,7 @@
personal.hardware = {
usb.enable = false;
- disks.crypted = "/dev/disk/by-uuid/edfa1320-68eb-4439-bef0-226a83c05376";
+ disks.crypted = "/dev/disk/by-uuid/b7a3424f-d8cd-4985-829c-224bf0f0842a";
firmwareNonFree.enable = true;
keyboard.keyMap = "fr";
sound.enable = false;
@@ -22,5 +22,5 @@
lidSwitchDocked = "ignore";
};
- environment.shellAliases.blankscreen = "setterm -term linux -blank </dev/tty1";
+ environment.shellAliases.blankscreen = "echo 0 > /sys/class/backlight/intel_backlight/brightness; setterm -term linux -blank </dev/tty1";
}
diff --git a/config/hardware/hardware-configuration.nix b/config/hardware/hardware-configuration.nix
index 7b8e4f2..b752734 100644
--- a/config/hardware/hardware-configuration.nix
+++ b/config/hardware/hardware-configuration.nix
@@ -1,31 +1,34 @@
# 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, ... }:
-
{
- imports =
- [ (modulesPath + "/installer/scan/not-detected.nix")
- ];
+ config,
+ lib,
+ modulesPath,
+ ...
+}: {
+ imports = [
+ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
- boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
- boot.initrd.kernelModules = [ "dm-snapshot" ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
+ boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
+ boot.initrd.kernelModules = ["dm-snapshot"];
+ boot.kernelModules = ["kvm-intel"];
+ boot.extraModulePackages = [];
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/873056aa-7820-4264-84de-59c44806a347";
- fsType = "ext4";
- };
+ fileSystems."/" = {
+ device = "/dev/disk/by-uuid/4fee0db4-0f9b-4b83-9dca-94f4576a1603";
+ fsType = "ext4";
+ };
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/ED9D-FCDE";
- fsType = "vfat";
- };
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-uuid/ED9D-FCDE";
+ fsType = "vfat";
+ };
- swapDevices =
- [ { device = "/dev/disk/by-uuid/b9fee327-ac22-49a8-b550-1876e03c4187"; }
- ];
+ swapDevices = [
+ {device = "/dev/disk/by-uuid/646b3fd3-a52e-49c3-9ffa-511adca82458";}
+ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's