Added reykjavik config
This commit is contained in:
@@ -79,5 +79,7 @@ Syncing disks.
|
||||
|
||||
4. Create the host nix configuration
|
||||
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
|
||||
|
||||
|
||||
28
system/hosts/reykjavik/default.nix
Normal file
28
system/hosts/reykjavik/default.nix
Normal 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";
|
||||
|
||||
}
|
||||
41
system/hosts/reykjavik/hardware.nix
Normal file
41
system/hosts/reykjavik/hardware.nix
Normal 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;
|
||||
}
|
||||
2
system/hosts/reykjavik/readme.org
Normal file
2
system/hosts/reykjavik/readme.org
Normal file
@@ -0,0 +1,2 @@
|
||||
* Reykjavik
|
||||
Portàtil Lenovo Legion 5 15ITH6H
|
||||
Reference in New Issue
Block a user