simplify modules included in generator

This commit is contained in:
Daylin Morgan 2024-12-12 16:38:33 -06:00
parent 847a5d4c99
commit bb8ed69269
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 78 additions and 78 deletions

View file

@ -1,4 +1,5 @@
{ {
inputs,
config, config,
enabled, enabled,
enableAttrs, enableAttrs,
@ -6,6 +7,10 @@
... ...
}: }:
{ {
imports = [
inputs.comin.nixosModules.comin
];
oizys = { oizys = {
rune.motd = enabled; rune.motd = enabled;
languages = "nim|node|python|nushell" |> listify; languages = "nim|node|python|nushell" |> listify;

View file

@ -45,11 +45,9 @@ let
nixosSystem { nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = modules =
[ []
inputs.comin.nixosModules.comin
]
++ (selfModules ''oizys'') ++ (selfModules ''oizys'')
++ (nixosModules ''lix-module|hyprland|sops-nix'') ++ (nixosModules ''lix-module|sops-nix'')
++ (hostFiles hostName); ++ (hostFiles hostName);
specialArgs = commonSpecialArgs // { specialArgs = commonSpecialArgs // {

View file

@ -1,85 +1,82 @@
{ {
inputs,
pkgs, pkgs,
config, config,
mkOizysModule, lib,
# mkOizysModule,
enabled, enabled,
flake, flake,
... ...
}: }:
mkOizysModule config "hyprland" { let
programs.hyprland = enabled; inherit (lib) mkEnableOption mkIf;
security.pam.services.swaylock = { }; cfg = config.oizys.hyprland;
# Optional, hint electron apps to use wayland: in
environment.sessionVariables.NIXOS_OZONE_WL = "1"; {
imports = [
environment.systemPackages = inputs.hyprland.nixosModules.default
(with pkgs; [
wl-mirror
wlr-randr
kanshi
brightnessctl
udiskie
eww
# notifications
libnotify
mako
# utils
grimblast
ksnip
wl-clipboard
rofi-wayland
pwvucontrol
#hypr ecosystem
hyprlock
hypridle
catppuccin-cursors.mochaDark
# not even clear why I need to add this but ¯\_(ツ)_/¯
kdePackages.qtwayland
])
++ [
(flake.pkg "hyprman")
]
# swww-git is broken
++ (with (flake.pkgs "nixpkgs-wayland"); [
mako
eww
wlr-randr
swww
]);
nixpkgs.overlays = [
(flake.overlay "hyprland-contrib")
# (overlayFrom "nixpkgs-wayland")
# (overlayFrom "hyprland")
]; ];
services.getty = { options.oizys.hyprland.enable = mkEnableOption "hyprland";
extraArgs = [ "--skip-login" ];
loginOptions = "-p -- ${config.oizys.user}"; config = mkIf cfg.enable {
programs.hyprland = enabled;
security.pam.services.swaylock = { };
# Optional, hint electron apps to use wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.systemPackages =
(with pkgs; [
wl-mirror
wlr-randr
kanshi
brightnessctl
udiskie
eww
# notifications
libnotify
mako
# utils
grimblast
ksnip
wl-clipboard
rofi-wayland
pwvucontrol
#hypr ecosystem
hyprlock
hypridle
catppuccin-cursors.mochaDark
# not even clear why I need to add this but ¯\_(ツ)_/¯
kdePackages.qtwayland
])
++ [
(flake.pkg "hyprman")
]
# swww-git is broken
++ (with (flake.pkgs "nixpkgs-wayland"); [
mako
eww
wlr-randr
swww
]);
nixpkgs.overlays = [
(flake.overlay "hyprland-contrib")
# (overlayFrom "nixpkgs-wayland")
# (overlayFrom "hyprland")
];
services.getty = {
extraArgs = [ "--skip-login" ];
loginOptions = "-p -- ${config.oizys.user}";
};
}; };
# using the below to autostart Hyprland
# broke my keybindings that were working before
# environment.etc =
# let
# activate-snippet = ''
# if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
# exec Hyprland
# fi
# '';
# in
# {
# "bashrc.local".text = activate-snippet;
# "zshenv.local".text = activate-snippet;
# };
#
} }