restructure desktop/wm and remove nur

This commit is contained in:
2024-05-19 17:57:35 +02:00
parent a3f253bd53
commit 0249d17ac1
36 changed files with 98 additions and 186 deletions

View File

@@ -17,5 +17,5 @@
#./waybar.nix
#./games.nix
]
# Waybar.nix is pulled from modules/desktop/..
# Waybar.nix is pulled from modules/wm/..
# Games.nix is pulled from desktop/default.nix

16
modules/wm/default.nix Normal file
View File

@@ -0,0 +1,16 @@
{ pkgs, lib, config, ... }:
{
options = {
desktop = {
wm = lib.mkOption { type = types.str; default = "sway"; };
taskbar = lib.mkOption { type = types.str; default = "waybar"; };
launcher = lib.mkOption { type = types.str; default = "bemenu"; };
};
};
config = {
imports =
(import ./ + (desktop.wm)) ++
};
}

View File

@@ -11,10 +11,10 @@
# └─ hyprland.nix *
#
{ config, lib, user, pkgs, ... }:
{ config, lib, user, pkgs, desktop, ... }:
{
imports = [ ../../programs/waybar.nix ];
imports = [ ../waybar.nix ];
hardware.opengl = {
enable = true;
@@ -40,6 +40,7 @@
rocmPackages.clr.icd
rocmPackages.clr
clinfo
waybar
];
};

View File

@@ -9,14 +9,6 @@
waybar
];
# nixpkgs.overlays = [ # Waybar needs to be compiled with the experimental flag for wlr/workspaces to work
# (self: super: {
# waybar = super.waybar.overrideAttrs (oldAttrs: {
# mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
# });
# })
# ];
home-manager.users.${user} = { # Home-manager waybar config
programs.waybar = {
enable = true;