From 495c661f5081c023c242e96cf99259181408e99a Mon Sep 17 00:00:00 2001 From: sils Date: Sat, 18 Mar 2023 10:12:58 +0100 Subject: Feat: Restructure and add nameservers. --- hosts/thinklappi/thinklappi.nix | 70 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 hosts/thinklappi/thinklappi.nix (limited to 'hosts/thinklappi/thinklappi.nix') diff --git a/hosts/thinklappi/thinklappi.nix b/hosts/thinklappi/thinklappi.nix new file mode 100644 index 0000000..5a3f0f6 --- /dev/null +++ b/hosts/thinklappi/thinklappi.nix @@ -0,0 +1,70 @@ +{ + config, + pkgs, + ... +}: let + compiledLayout = pkgs.runCommand "keyboard-layout" {} '' + ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${../files/neoqwertz.xkb} $out + ''; +in { + imports = [ + ./basesystem.nix + ../../env.nix + ../../nix.nix + ../../packages.nix + ../../users.nix + ../../zsh.nix + ../../flatpak.nix # Mainly for minecraft + + # Desktop Environment to use + ../../desktop/gnome.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; + pulseaudio.enable = false; + }; + security.rtkit.enable = true; + + environment.systemPackages = [pkgs.xorg.xkbcomp]; + + i18n.defaultLocale = "en_US.UTF-8"; + + networking = { + hostName = "thinklappi"; + nameservers = ["2620:fe::fe" "2620:fe::9" "9.9.9.9" "149.112.112.112"]; + networkmanager = { + enable = true; + dns = "none"; + }; + }; + + time.timeZone = "Europe/Berlin"; + + console = { + font = "Lat2-Terminus16"; + keyMap = "de"; + #useXkbConfig = true; # use xkbOptions in tty. + }; + + programs.ssh.startAgent = true; + + system.stateVersion = "23.05"; +} -- cgit 1.4.1