This commit is contained in:
2025-08-26 18:33:56 +02:00
parent 4b06060222
commit 6e5dea6b65
9 changed files with 211 additions and 2 deletions

90
configuration.nix Normal file
View File

@@ -0,0 +1,90 @@
# 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";
# };
# 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. Its 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?
}