init config
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Identity
|
||||
networking.hostName = "acer"; # Define your hostname.
|
||||
networking.hostId = "fc9583ce";
|
||||
|
||||
# Hardware
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
services.hardware.bolt.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Kernel
|
||||
# boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
|
||||
|
||||
# Swap
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = 100;
|
||||
};
|
||||
|
||||
# Storage
|
||||
fileSystems."/" =
|
||||
{
|
||||
device = "acer-ssd/root";
|
||||
fsType = "zfs";
|
||||
options = [ "zfsutil" ];
|
||||
};
|
||||
fileSystems."/nix" =
|
||||
{
|
||||
device = "acer-ssd/nix";
|
||||
fsType = "zfs";
|
||||
options = [ "zfsutil" ];
|
||||
};
|
||||
fileSystems."/var" =
|
||||
{
|
||||
device = "acer-ssd/var";
|
||||
fsType = "zfs";
|
||||
options = [ "zfsutil" ];
|
||||
};
|
||||
fileSystems."/home" =
|
||||
{
|
||||
device = "acer-ssd/home";
|
||||
fsType = "zfs";
|
||||
options = [ "zfsutil" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/72EF-7CD3";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
# Config modules
|
||||
lumpiasty = {
|
||||
pc = true;
|
||||
enablePlasma = true;
|
||||
intelCpu = false;
|
||||
noMitigations = false;
|
||||
enablePulseaudio = true;
|
||||
sshd = true;
|
||||
users.user = true;
|
||||
# users.drugi = true;
|
||||
};
|
||||
|
||||
virtualisation.vmVariant = {
|
||||
virtualisation = {
|
||||
memorySize = 2048;
|
||||
cores = 2;
|
||||
};
|
||||
};
|
||||
|
||||
# For dev vm stuff
|
||||
networking.firewall.trustedInterfaces = [ "br0" ];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Identity
|
||||
networking.hostName = "x260"; # Define your hostname.
|
||||
|
||||
# Hardware
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Kernel
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# Swap
|
||||
zramSwap.enable = true;
|
||||
|
||||
# Storage
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/700cbbf6-b2c6-4bff-9d5f-374e39874a03";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/E82E-7726";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
# Config modules
|
||||
lumpiasty = {
|
||||
pc = true;
|
||||
enablePlasma = true;
|
||||
intelCpu = true;
|
||||
noMitigations = true;
|
||||
enablePulseaudio = true;
|
||||
sshd = true;
|
||||
users.user = true;
|
||||
# users.drugi = true;
|
||||
};
|
||||
|
||||
virtualisation.vmVariant = {
|
||||
virtualisation = {
|
||||
memorySize = 2048;
|
||||
cores = 2;
|
||||
};
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
}
|
||||
Reference in New Issue
Block a user