move config to modules

This commit is contained in:
eneller
2024-01-11 17:59:02 +01:00
parent 98a666c1f6
commit 73383194e1
5 changed files with 63 additions and 64 deletions

22
config/i3.nix Normal file
View File

@@ -0,0 +1,22 @@
{ config, pkgs, ... }:
{
imports = [
./xorg.nix
];
services.xserver.windowManager.i3.enable = true;
environment.systemPackages = with pkgs; [
# might use picom as a compositor
lightdm-slick-greeter
rofi
i3status
i3lock
xfce.xfce4-power-manager
networkmanager
networkmanagerapplet
networkmanager-openvpn
networkmanager-openconnect
libnotify
dunst
];
}

27
config/locale.nix Normal file
View File

@@ -0,0 +1,27 @@
{ config, pkgs, ... }:
{
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "de_DE.UTF-8";
i18n.extraLocaleSettings = {
LANGUAGE = "en_US.UTF-8";
LC_ALL = "de_DE.UTF-8";
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";
};
services.xserver.layout = "de";
# Configure console keymap
console.keyMap = "de";
}

11
config/xorg.nix Normal file
View File

@@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
# Enable the X11 windowing system.
services.xserver = {
enable = true;
displayManager.lightdm.enable = true;
xkbVariant = "";
autoRepeatDelay = 200;
autoRepeatInterval = 35;
};
}