Re-organize Nix Modules

- Move all programs into system folder
- Create `default.nix` for each folder to reduce number of imports
  in configuration.nix
- Rename some modules to be more generic and less package
  specific to allow for easy swapping of programs in the future
- Update flake.lock
This commit is contained in:
Sravan Balaji
2024-03-27 16:12:10 -04:00
parent ee2aff1f08
commit 59f88dad0f
41 changed files with 277 additions and 92 deletions

8
system/gui/default.nix Normal file
View File

@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [
./x11.nix
./fonts.nix
];
}

View File

@@ -2,11 +2,8 @@
{
imports = [
./x11.nix
./default.nix
./lightdm.nix
../app/terminal/kitty.nix
../app/launcher/dmenu.nix
../app/launcher/rofi.nix
];
services.xserver.windowManager.dwm.enable = true;

View File

@@ -2,6 +2,7 @@
{
fonts.packages = with pkgs; [
corefonts
powerline
font-awesome
ubuntu_font_family

View File

@@ -2,7 +2,7 @@
{
imports = [
./x11.nix
./default.nix
];
services.xserver.displayManager.gdm.enable = true;

View File

@@ -1,12 +1,6 @@
{ config, lib, pkgs, ... }:
{
imports = [
../util/dbus.nix
../util/gnome-keyring.nix
./fonts.nix
];
services.xserver = {
enable = true;
xkb = {