diff options
| author | Mihai Fufezan <fufexan@protonmail.com> | 2022-06-01 01:52:34 +0300 |
|---|---|---|
| committer | Mihai Fufezan <fufexan@protonmail.com> | 2022-06-01 23:52:08 +0300 |
| commit | 9447fcd603520a57b2845edd42fdd981303acf18 (patch) | |
| tree | 90858d39de0892e413b7879cea4abab12994c2ff /module.nix | |
| parent | 9acf15efd7268406bffdf9141b31851a06007e24 (diff) | |
fix Nix build and add updater
- move unnecessary toplevel files to nix/
- added patch that ignores the submodule (revert)
- add update script run by a workflow
Diffstat (limited to 'module.nix')
| -rw-r--r-- | module.nix | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/module.nix b/module.nix deleted file mode 100644 index a7460b34..00000000 --- a/module.nix +++ /dev/null @@ -1,62 +0,0 @@ -# Copied from https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/sway.nix -self: { - config, - lib, - pkgs, - ... -}: -with lib; let - cfg = config.programs.hyprland; -in { - options.programs.hyprland = { - enable = mkEnableOption '' - Hyprland, the dynamic tiling Wayland compositor that doesn't sacrifice on its looks. - You can manually launch Hyprland by executing "exec Hyprland" on a TTY. - A configuration file will be generated in ~/.config/hypr/hyprland.conf. - See <link xlink:href="https://github.com/vaxerski/Hyprland/wiki" /> for - more information. - ''; - - package = mkOption { - type = types.package; - default = self.packages.${pkgs.system}.default; - defaultText = literalExpression "<Hyprland flake>.packages.<system>.default"; - example = literalExpression "<Hyprland flake>.packages.<system>.default.override { }"; - description = '' - Hyprland package to use. - ''; - }; - - extraPackages = mkOption { - type = with types; listOf package; - default = with pkgs; [ - kitty - wofi - swaybg - ]; - defaultText = literalExpression '' - with pkgs; [ kitty wofi swaybg ]; - ''; - example = literalExpression '' - with pkgs; [ - alacritty wofi - ] - ''; - description = '' - Extra packages to be installed system wide. - ''; - }; - }; - - config = mkIf cfg.enable { - environment.systemPackages = [cfg.package] ++ cfg.extraPackages; - security.polkit.enable = true; - hardware.opengl.enable = mkDefault true; - fonts.enableDefaultFonts = mkDefault true; - programs.dconf.enable = mkDefault true; - services.xserver.displayManager.sessionPackages = [cfg.package]; - programs.xwayland.enable = mkDefault true; - xdg.portal.enable = mkDefault true; - xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-wlr]; - }; -} |
