Files
first/configuration.nix
T
2026-04-06 18:02:00 +00:00

66 lines
1.5 KiB
Nix

{ config, pkgs, modulesPath, ... }:
{
imports = [
"${modulesPath}/profiles/qemu-guest.nix"
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
nix.settings = {
trusted-users = [ "root" "kalle" ];
allowed-users = [ "root" "kalle" ];
};
# # direct deploy building
# fileSystems."/" = {
# device = "/dev/vda1";
# fsType = "ext4";
# };
# image building
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
boot.kernelParams = [
"console=ttyS0,115200"
"console=tty1"
];
services.qemuGuest.enable = true;
networking.hostName = "minimal";
networking.networkmanager.enable = true;
time.timeZone = "Europe/Stockholm";
i18n.defaultLocale = "sv_SE.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "sv-latin1";
};
security.sudo.wheelNeedsPassword = false;
programs.zsh.enable = true;
users.mutableUsers = true;
users.users.kalle = {
isNormalUser = true;
initialHashedPassword = "$6$92TJx1rnVZ8ZBWGk$.0CUy9wLNbfNdmkwhnQCOomFiy.oJA2bSzLOixoQS3UyV/BITD55IhEVfr05VUVJtjcUoVIE1We99qEAWAbkE/";
shell = pkgs.zsh;
extraGroups = [ "wheel" "docker" "networkmanager" "video" "audio" ];
packages = with pkgs; [ zsh tmux fzf bat fd ];
};
environment.systemPackages = with pkgs; [
vim btrfs-progs cloud-utils
wireguard-tools inetutils wget mosh rsync git
];
services.openssh.enable = true;
system.stateVersion = "25.05";
}