103 lines
2.4 KiB
Nix
103 lines
2.4 KiB
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ config, pkgs, ... }:
|
||
|
||
|
||
{
|
||
|
||
# imports = [ ./hw.nix ];
|
||
|
||
# boot.loader.grub.device = "/dev/vda";
|
||
# fileSystems."/" = {
|
||
# device = "/dev/vda1";
|
||
# fsType = "ext4";
|
||
# };
|
||
|
||
boot.kernelParams = [
|
||
"console=ttyS0,115200"
|
||
"console=tty1"
|
||
];
|
||
|
||
systemd.services."serial-getty@ttyS0" = {
|
||
enable = true;
|
||
wantedBy = [ "getty.target" ]; # to start at boot
|
||
serviceConfig.Restart = "always"; # restart when session is closed
|
||
};
|
||
|
||
|
||
|
||
# network and proxy
|
||
networking.hostName = "minimal";
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Stockholm";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "sv_SE.UTF-8";
|
||
console = {
|
||
font = "Lat2-Terminus16";
|
||
keyMap = "sv-latin1";
|
||
};
|
||
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
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" ]; # Enable ‘sudo’ for the user.
|
||
packages = with pkgs; [
|
||
|
||
# common sense
|
||
zsh
|
||
tmux
|
||
fzf
|
||
fzf-zsh
|
||
bat
|
||
fd
|
||
|
||
];
|
||
};
|
||
|
||
# system packages
|
||
environment.systemPackages = with pkgs; [
|
||
|
||
# basic stuff
|
||
vim
|
||
btrfs-progs
|
||
|
||
# net
|
||
wireguard-tools
|
||
inetutils
|
||
wget
|
||
mosh
|
||
rsync
|
||
git
|
||
|
||
];
|
||
|
||
|
||
|
||
# List services that you want to enable:
|
||
|
||
# Enable the OpenSSH daemon.
|
||
services.openssh.enable = true;
|
||
|
||
|
||
# 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 = "25.05"; # Did you read the comment?
|
||
|
||
}
|
||
|