initial nix setum with Nina :3

This commit is contained in:
CDaut 2024-02-23 00:18:39 +01:00
commit e0b88992f5
Signed by: clara
GPG key ID: 223391B52FAD4463
6 changed files with 212 additions and 0 deletions

95
configuration.nix Normal file
View file

@ -0,0 +1,95 @@
{ config, pkgs, ... }:
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
imports =
[ # Include the results of the hardware scan.
./vm_hardware-configuration.nix
];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "nixpad"; # Define your hostname.
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
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";
};
# Configure keymap in X11
services.xserver = {
layout = "de";
xkbVariant = "";
enable = true;
displayManager = {
defaultSession = "none+i3";
};
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
extraPackages = with pkgs; [
dmenu
];
};
};
# Configure console keymap
console.keyMap = "de";
# Define a user account. Don't forget to set a password with passwd.
users.users.clemens = {
isNormalUser = true;
description = "clemens";
initialPassword = "123456";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
# home manager
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.clemens = import ./home.nix;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# systemwide packages
environment.systemPackages = with pkgs; [
vim
wget
];
# 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 = "24.05"; # Did you read the comment?
}