refactor: use nixpkgs hostSystem
This commit is contained in:
parent
89991861ed
commit
8285cdceff
3 changed files with 26 additions and 32 deletions
|
|
@ -11,6 +11,8 @@
|
|||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
my.profiles = {
|
||||
desktop.enable = true;
|
||||
work.enable = true;
|
||||
|
|
@ -50,12 +52,14 @@
|
|||
keyMap = "de";
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.layout = "de";
|
||||
services.xserver.xkbOptions = "caps:escape"; # map caps to escape.
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
services.xserver.libinput.enable = true;
|
||||
services.xserver = {
|
||||
# Configure keymap in X11
|
||||
layout = "de";
|
||||
# map caps to escape.
|
||||
xkbOptions = "caps:escape";
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
libinput.enable = true;
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.moritz = {
|
||||
|
|
@ -107,6 +111,4 @@
|
|||
# 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 = "22.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue