Separated out shared.nix into headful and headless nix config files

This commit is contained in:
Random936
2024-07-04 18:31:09 -07:00
parent 2f097552b6
commit 8de0666cc5
5 changed files with 69 additions and 68 deletions

52
config/headful.nix Normal file
View File

@@ -0,0 +1,52 @@
{ config, pkgs, inputs, ... }: {
imports = [ ./shared.nix ];
# Networking
networking.wireless.iwd.enable = true;
networking.networkmanager = {
enable = true;
wifi.backend = "iwd";
};
# Enable sound
sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable the X11 windowing system and i3 window manager.
environment.pathsToLink = [ "/libexec" ];
services.xserver = {
enable = true;
# Setup i3 window manager
windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;
extraPackages = with pkgs; [
rofi
polybar
rxvt-unicode
arandr
];
};
# Configure keymap in X11
xkb = {
layout = "us";
variant = "";
options = "caps:escape";
};
};
# List packages to be installed for headful systems
environment.systemPackages = with pkgs; [
picom
];
# Install additional programs
programs.thunar.enable = true;
}