prepared for mininas
This commit is contained in:
parent
a5dedc87f2
commit
6459653ed1
2 changed files with 14 additions and 34 deletions
|
@ -9,6 +9,8 @@
|
||||||
../../modules/common
|
../../modules/common
|
||||||
../../modules/security/ssh-keys.nix
|
../../modules/security/ssh-keys.nix
|
||||||
../../modules/users/sma.nix
|
../../modules/users/sma.nix
|
||||||
|
../../modules/network/common.nix
|
||||||
|
../../modules/network/extraHosts.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader
|
# Bootloader
|
||||||
|
@ -19,37 +21,17 @@
|
||||||
networking.hostName = "limiting-factor";
|
networking.hostName = "limiting-factor";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
# Time zone
|
# Add nomodeset for graphics compatibility
|
||||||
|
boot.kernelParams = ["nomodeset"];
|
||||||
|
|
||||||
|
# Time and locale
|
||||||
time.timeZone = "Europe/Oslo";
|
time.timeZone = "Europe/Oslo";
|
||||||
|
|
||||||
# Internationalization
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "nb_NO.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "nb_NO.UTF-8";
|
|
||||||
LC_MEASUREMENT = "nb_NO.UTF-8";
|
|
||||||
LC_MONETARY = "nb_NO.UTF-8";
|
|
||||||
LC_NAME = "nb_NO.UTF-8";
|
|
||||||
LC_NUMERIC = "nb_NO.UTF-8";
|
|
||||||
LC_PAPER = "nb_NO.UTF-8";
|
|
||||||
LC_TELEPHONE = "nb_NO.UTF-8";
|
|
||||||
LC_TIME = "nb_NO.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Console keymap
|
# Console configuration
|
||||||
console.keyMap = "us";
|
console = {
|
||||||
|
font = "Lat2-Terminus16";
|
||||||
# Define users
|
keyMap = "no";
|
||||||
users.users.sma = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Diziet Sma";
|
|
||||||
extraGroups = ["networkmanager" "wheel"];
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Basic server tools
|
|
||||||
git
|
|
||||||
vim
|
|
||||||
htop
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
|
|
|
@ -15,24 +15,22 @@
|
||||||
# NOTE: This is a template - replace with actual hardware configuration
|
# NOTE: This is a template - replace with actual hardware configuration
|
||||||
# after running nixos-generate-config on the target machine
|
# after running nixos-generate-config on the target machine
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod"];
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" "usbhid"];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = ["kvm-intel"];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
# Filesystems - update paths and UUIDs after installation
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/REPLACE-WITH-ACTUAL-UUID";
|
device = "/dev/disk/by-uuid/35a33370-c764-4ffb-9492-0be304be9b50";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/REPLACE-WITH-ACTUAL-BOOT-UUID";
|
device = "/dev/disk/by-uuid/A202-71FE";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
options = ["fmask=0022" "dmask=0022"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Swap configuration - adjust as needed
|
|
||||||
swapDevices = [];
|
swapDevices = [];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue