blob: ec5115020d2800395a69550b85e4985e0bd70a5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ config, pkgs, ... }:
let
compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./files/neoqwertz.xkb} $out
'';
in
{
imports = [
./hardware-configuration.nix
./env.nix
./packages.nix
./users.nix
./zsh.nix
./flatpak.nix # Mainly for minecraft
# Desktop Environment to use
./desktop/plasma.nix
];
services = {
printing.enable = true;
xserver = {
layout = "de";
#xkbVariant = ",neo";
xkbOptions = "grp:win_space_toggle";
displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
};
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
};
hardware.bluetooth.enable = true;
security.rtkit.enable = true;
environment.systemPackages = [ pkgs.xorg.xkbcomp ];
i18n.defaultLocale = "en_US.UTF-8";
networking = {
hostName = "thinklappi";
networkmanager.enable = true;
};
time.timeZone = "Europe/Berlin";
console = {
font = "Lat2-Terminus16";
keyMap = "de";
#useXkbConfig = true; # use xkbOptions in tty.
};
programs.ssh.startAgent = true;
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
system.stateVersion = "23.05";
}
|