Add multi-host configuration

based loosely on https://github.com/tom-on-the-internet/system-configuration
This commit is contained in:
Elnu 2022-10-09 19:09:47 -07:00
parent f554a9038b
commit 8f0f5b9bbf
13 changed files with 254 additions and 240 deletions

36
hosts/desktop.nix Normal file
View file

@ -0,0 +1,36 @@
{ config, pkgs, ... }:
{
services = {
xserver = {
enable = true;
libinput = {
enable = true;
touchpad = {
naturalScrolling = true;
tapping = true;
};
};
xkbOptions = "caps:escape";
displayManager = {
lightdm.enable = true;
#sddm.enable = true;
defaultSession = "none+i3";
};
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
};
};
};
sound.enable = true;
hardware.pulseaudio.enable = true;
nixpkgs.config.pulseaudio = true;
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
(nerdfonts.override { fonts = [ "FiraCode" ]; }) # required for icons
];
}