Add nixos config
This commit is contained in:
64
nix/nixos/configuration.nix.old
Normal file
64
nix/nixos/configuration.nix.old
Normal file
@@ -0,0 +1,64 @@
|
||||
# NixOS-WSL Configuration
|
||||
# This works with the flake.nix in this directory
|
||||
#
|
||||
# Apply with:
|
||||
# sudo nixos-rebuild switch --flake /home/pan/dev/config/dot/nix/nixos#nix
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# WSL-specific settings
|
||||
wsl.enable = true;
|
||||
wsl.defaultUser = "pan";
|
||||
wsl.interop.register = true;
|
||||
|
||||
# Networking
|
||||
networking.hostName = "nix";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Time zone and locale
|
||||
time.timeZone = "Europe/Berlin";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "de_DE.UTF-8";
|
||||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||||
LC_MEASUREMENT = "de_DE.UTF-8";
|
||||
LC_MONETARY = "de_DE.UTF-8";
|
||||
LC_NAME = "de_DE.UTF-8";
|
||||
LC_NUMERIC = "de_DE.UTF-8";
|
||||
LC_PAPER = "de_DE.UTF-8";
|
||||
LC_TELEPHONE = "de_DE.UTF-8";
|
||||
LC_TIME = "de_DE.UTF-8";
|
||||
};
|
||||
|
||||
# User account
|
||||
users.users.pan = {
|
||||
isNormalUser = true;
|
||||
description = "Martin Pander";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
# Enable Zsh system-wide
|
||||
programs.zsh.enable = true;
|
||||
|
||||
# Nix settings
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Minimal system packages (most go in Home Manager)
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
git
|
||||
wget
|
||||
curl
|
||||
];
|
||||
|
||||
# NixOS version (don't change unless you know what you're doing)
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
Reference in New Issue
Block a user