feat: add darwun

This commit is contained in:
zoey 2025-05-28 16:55:13 -04:00
parent b3f397713b
commit 99745a7f02
Signed by: zoey
GPG key ID: 248926B700C2C126
23 changed files with 970 additions and 751 deletions

View file

@ -44,65 +44,65 @@ in {
enable = mkBoolOpt false "Enable AGS";
};
config = mkIf cfg.enable {
programs.ags = {
enable = true;
config = mkIf (cfg.enable && !pkgs.stdenv.isDarwin) {
programs.ags = {
enable = true;
# Generate _colors.scss with our theme colors
configDir = pkgs.runCommand "ags-config" {} ''
cp -r ${./cfg} $out
chmod -R +w $out
cat > $out/scss/_colors.scss << EOF
/* Generated from lib/theme/default.nix */
$rosewater: ${colors.rosewater.hex};
$flamingo: ${colors.flamingo.hex};
$pink: ${colors.pink.hex};
$mauve: ${colors.mauve.hex};
$red: ${colors.red.hex};
$maroon: ${colors.maroon.hex};
$peach: ${colors.peach.hex};
$yellow: ${colors.yellow.hex};
$green: ${colors.green.hex};
$teal: ${colors.teal.hex};
$sky: ${colors.sky.hex};
$sapphire: ${colors.sapphire.hex};
$blue: ${colors.blue.hex};
$lavender: ${colors.lavender.hex};
$text: ${colors.text.hex};
$subtext1: ${colors.subtext1.hex};
$subtext0: ${colors.subtext0.hex};
$overlay2: ${colors.overlay2.hex};
$overlay1: ${colors.overlay1.hex};
$overlay0: ${colors.overlay0.hex};
$surface2: ${colors.surface2.hex};
$surface1: ${colors.surface1.hex};
$surface0: ${colors.surface0.hex};
$base: ${colors.base.hex};
$mantle: ${colors.mantle.hex};
$crust: ${colors.crust.hex};
# Generate _colors.scss with our theme colors
configDir = pkgs.runCommand "ags-config" {} ''
cp -r ${./cfg} $out
chmod -R +w $out
cat > $out/scss/_colors.scss << EOF
/* Generated from lib/theme/default.nix */
$rosewater: ${colors.rosewater.hex};
$flamingo: ${colors.flamingo.hex};
$pink: ${colors.pink.hex};
$mauve: ${colors.mauve.hex};
$red: ${colors.red.hex};
$maroon: ${colors.maroon.hex};
$peach: ${colors.peach.hex};
$yellow: ${colors.yellow.hex};
$green: ${colors.green.hex};
$teal: ${colors.teal.hex};
$sky: ${colors.sky.hex};
$sapphire: ${colors.sapphire.hex};
$blue: ${colors.blue.hex};
$lavender: ${colors.lavender.hex};
$text: ${colors.text.hex};
$subtext1: ${colors.subtext1.hex};
$subtext0: ${colors.subtext0.hex};
$overlay2: ${colors.overlay2.hex};
$overlay1: ${colors.overlay1.hex};
$overlay0: ${colors.overlay0.hex};
$surface2: ${colors.surface2.hex};
$surface1: ${colors.surface1.hex};
$surface0: ${colors.surface0.hex};
$base: ${colors.base.hex};
$mantle: ${colors.mantle.hex};
$crust: ${colors.crust.hex};
/* Default accent color */
$accent: ${colors.sapphire.hex};
EOF
'';
/* Default accent color */
$accent: ${colors.sapphire.hex};
EOF
'';
extraPackages = dependencies;
};
systemd.user.services.ags = {
Unit = {
Description = "Aylur's Gtk Shell";
PartOf = [
"tray.target"
"hyprland-session.target"
];
extraPackages = dependencies;
};
Service = {
Environment = "PATH=/run/wrappers/bin:${lib.makeBinPath dependencies}";
ExecStart = "${config.programs.ags.package}/bin/ags";
Restart = "on-failure";
systemd.user.services.ags = {
Unit = {
Description = "Aylur's Gtk Shell";
PartOf = [
"tray.target"
"hyprland-session.target"
];
};
Service = {
Environment = "PATH=/run/wrappers/bin:${lib.makeBinPath dependencies}";
ExecStart = "${config.programs.ags.package}/bin/ags";
Restart = "on-failure";
};
Install.WantedBy = ["hyprland-session.target"];
};
Install.WantedBy = ["hyprland-session.target"];
};
};
}

View file

@ -14,9 +14,8 @@ in {
enable = mkBoolOpt false "Enable Anyrun";
};
config =
mkIf cfg.enable {
};
config = mkIf (cfg.enable && !pkgs.stdenv.isDarwin) {
};
# programs.anyrun = {
# enable = true;
# config = {

View file

@ -12,10 +12,10 @@ in {
enable = mkBoolOpt false "Enable Rofi";
};
config = mkIf cfg.enable {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
config = mkIf (cfg.enable && !pkgs.stdenv.isDarwin) {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
# Basic configuration
terminal = "kitty";
@ -196,5 +196,5 @@ in {
size: 0;
}
'';
};
};
}

View file

@ -14,7 +14,7 @@ in {
enable = mkBoolOpt false "Enable WayBar";
};
config = mkIf cfg.enable {
config = mkIf (cfg.enable && !pkgs.stdenv.isDarwin) {
programs.waybar = {
enable = true;
systemd.enable = true;

View file

@ -12,7 +12,7 @@ in {
enable = mkBoolOpt false "Enable Foot Terminal";
};
config = mkIf cfg.enable {
config = mkIf (cfg.enable && !pkgs.stdenv.isDarwin) {
programs.foot = {
enable = true;
settings = {

View file

@ -89,7 +89,6 @@ in {
sqlite
postgresql
mongosh
gerbera
# vscode-extensions.vadimcn.vscode-lldb.adapter
];
plugins = with pkgs.vimPlugins; [

View file

@ -14,7 +14,7 @@ in {
setDefault = mkBoolOpt false "Set zen as default browser";
};
config = mkIf cfg.enable {
config = mkIf (cfg.enable && !pkgs.stdenv.isDarwin) {
xdg.mimeApps.defaultApplications = mkIf cfg.setDefault {
"text/html" = "zen-beta.desktop";
"x-scheme-handler/http" = "zen-beta.desktop";