92 lines
1.7 KiB
Nix
92 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = with lib.nixosModules; [disko];
|
|
|
|
disko.devices.disk.NixOS = {
|
|
device = "/dev/nvme0n1";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
type = "EF00";
|
|
size = "100M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/efi";
|
|
};
|
|
};
|
|
Swap = {
|
|
type = "8200";
|
|
size = "16G";
|
|
content.type = "swap";
|
|
};
|
|
Root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
boot = {
|
|
loader = {
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
};
|
|
efi.efiSysMountPoint = "/efi";
|
|
};
|
|
extraModulePackages = with config.boot.kernelPackages; [rtl88xxau-aircrack];
|
|
};
|
|
|
|
networking = {
|
|
hostName = "dk1";
|
|
networkmanager.enable = true;
|
|
};
|
|
|
|
time.timeZone = "Europe/London";
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
console.keyMap = "uk";
|
|
|
|
users = {
|
|
mutableUsers = false;
|
|
users = {
|
|
root = {
|
|
isSystemUser = true;
|
|
password = "root";
|
|
};
|
|
user = {
|
|
isNormalUser = true;
|
|
extraGroups = ["wheel"];
|
|
password = "user";
|
|
};
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays = [lib.overlays.pkgs];
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
my-vim
|
|
];
|
|
|
|
nix.settings = {
|
|
trusted-users = ["root"];
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
};
|
|
|
|
system.stateVersion = "24.11";
|
|
}
|