diff --git a/flake.nix b/flake.nix index b050f620..401b370d 100644 --- a/flake.nix +++ b/flake.nix @@ -13,10 +13,8 @@ }; outputs = { self, nixpkgs, systems, quickshell, ... }: - let - eachSystem = nixpkgs.lib.genAttrs (import systems); + let eachSystem = nixpkgs.lib.genAttrs (import systems); in { - # formatter for `nix fmt` formatter = eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra); @@ -44,7 +42,7 @@ networkmanager wlsunset wl-clipboard - ] ++ pkgs.lib.optionals (pkgs.stdenv.hostPlatform.isx86_64) + ] ++ lib.optionals (pkgs.stdenv.hostPlatform.isx86_64) [ gpu-screen-recorder ]; fontconfig = pkgs.makeFontsConf { @@ -81,21 +79,6 @@ }; }); - # convenience defaultPackage for each system defaultPackage = eachSystem (system: self.packages.${system}.default); - - nixosModules = { - noctalia = { pkgs, lib, ... }: { - environment.systemPackages = [ - self.packages.${pkgs.system}.default - ]; - # Required services for proper functionality - services.power-profiles-daemon.enable = true; # Power profile switching support - services.upower.enable = true; # Battery monitoring & power management - }; - - # add an alias so consumers can do `noctalia.nixosModules.default` - default = self.nixosModules.noctalia; - }; }; }