Initial commit
This commit is contained in:
28
system/hosts/kopavogur/default.nix
Normal file
28
system/hosts/kopavogur/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
];
|
||||
|
||||
# - Basic --------------------------------------
|
||||
|
||||
networking.hostName = "kopavogur";
|
||||
|
||||
samfelag.modules.user = {
|
||||
name = "marc";
|
||||
};
|
||||
|
||||
# - Bootloader ---------------------------------
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
boot.loader.grub.useOSProber = true;
|
||||
|
||||
# - Services -----------------------------------
|
||||
|
||||
samfelag.profiles.desktop.enable = true;
|
||||
|
||||
system.stateVersion = "22.05";
|
||||
|
||||
}
|
||||
40
system/hosts/kopavogur/hardware.nix
Normal file
40
system/hosts/kopavogur/hardware.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "ahci" "xhci_pci" "pata_jmicron" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
kernelModules = [ ];
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ config.boot.kernelPackages.rtl88xxau-aircrack ];
|
||||
};
|
||||
|
||||
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 = {
|
||||
enp7s0.useDHCP = lib.mkDefault true;
|
||||
wlp0s26f7u2.useDHCP = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
2
system/hosts/kopavogur/readme.org
Normal file
2
system/hosts/kopavogur/readme.org
Normal file
@@ -0,0 +1,2 @@
|
||||
* Kopavogur
|
||||
Ordinador (torre) de l'Ajuntament
|
||||
Reference in New Issue
Block a user