nix-config/modules/nixos/default.nix
larstvei 326148e795 Make keyboard work more like macOS
Producing characters (like æ, ø and å) via hyprland was always a terrible idea,
but working around it was a bit finicky. This seems to work.
2026-02-20 20:39:38 +01:00

57 lines
1.1 KiB
Nix

{ pkgs, inputs, ... }:
{
imports = [
../fonts
./printing
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
};
users.users.larstvei = {
isNormalUser = true;
description = "Lars Tveito";
home = "/home/larstvei";
shell = pkgs.fish;
extraGroups = [
"dialout"
"networkmanager"
"wheel"
];
};
services.xserver.xkb = {
layout = "us";
variant = "mac";
options = "lv3:alt_switch,apple:alupckeys";
};
console.useXkbConfig = true;
nixpkgs.config.allowUnfree = true;
programs._1password.enable = true;
programs._1password-gui.enable = true;
i18n.defaultLocale = "en_US.UTF-8";
networking.networkmanager.enable = true;
hardware.bluetooth.enable = true;
services.printing.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}