give up :(

This commit is contained in:
mehbark 2023-08-15 18:31:53 -04:00
parent 1e8a45546a
commit 1a047c2740
2 changed files with 6 additions and 10 deletions

View file

@ -1,8 +1,7 @@
{ wm ? null, ...}: input@{ wm ? null, ...}:
with builtins; with builtins;
input //
rec { rec {
wm = wm;
x11-wms = ["plasma" "xmonad" "i3"]; x11-wms = ["plasma" "xmonad" "i3"];
wayland-wms = ["hyprland" "sway"]; wayland-wms = ["hyprland" "sway"];
wms = x11-wms ++ wayland-wms; wms = x11-wms ++ wayland-wms;

View file

@ -8,19 +8,16 @@
outputs = inputs@{ self, nixpkgs, home-manager, flake-utils, ... }: outputs = inputs@{ self, nixpkgs, home-manager, flake-utils, ... }:
let let
conf = (import ./build.conf.nix) {}; # :(
conf = (import ./build.conf.nix) { wm = "plasma"; };
in in
{ {
nixosConfigurations = nixosConfigurations =
flake-utils.lib.eachSystem conf.wms (wm:
let
conf = import (./build.conf.nix) { wm = wm; };
in
{ {
nix = nixpkgs.lib.nixosSystem { nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
(./configuration.nix conf) ((import ./configuration.nix) conf)
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
@ -29,6 +26,6 @@
} }
]; ];
}; };
}); };
}; };
} }