Added reykjavik config

This commit is contained in:
Marc Sastre Rienitz
2022-11-02 22:17:42 +00:00
parent bd9ac68acf
commit c1bd2ea1d7
4 changed files with 73 additions and 0 deletions

View File

@@ -79,5 +79,7 @@ Syncing disks.
4. Create the host nix configuration 4. Create the host nix configuration
If the host is not present under system/hosts, create a new folder for the host. If the host is not present under system/hosts, create a new folder for the host.
Generate the hardware configuration file, you can use nixos-generate-config as a base:
> nixos-generate-config --dir <<host directory>> --no-filesystems

View File

@@ -0,0 +1,28 @@
{ config, pkgs, lib, ... }:
{
imports = [
./hardware.nix
];
# - Basic --------------------------------------
networking.hostName = "reykjavik";
samfelag.modules.user = {
name = "marc";
};
# - Bootloader ---------------------------------
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.grub.useOSProber = true;
# - Services -----------------------------------
samfelag.profiles.desktop.enable = true;
system.stateVersion = "22.05";
}

View File

@@ -0,0 +1,41 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "thunderbolt" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
};
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
networking = {
useDHCP = lib.mkDefault true;
interfaces = {
enp92s0.useDHCP = lib.mkDefault true;
wlp0s20f3.useDHCP = lib.mkDefault true;
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@@ -0,0 +1,2 @@
* Reykjavik
Portàtil Lenovo Legion 5 15ITH6H