This commit is contained in:
Asaki Yuki 2026-04-13 19:23:45 +07:00
parent 8ad9377b38
commit 0f6fdf63f1
5 changed files with 259 additions and 250 deletions

View file

@ -44,5 +44,7 @@
cider.enable = true;
proton-ge.enable = true;
proton-apps.enable = true;
firefox.enable = true;
chromium.enable = true;
};
}

View file

@ -1,9 +1,7 @@
{ pkgs, libs, ... }:
{
programs = {
firefox = {
enable = true;
profiles.default = {
firefox.profiles.default = {
settings = {
"browser.startup.homepage" = "about:home";
@ -165,8 +163,7 @@
userChrome = builtins.readFile (libs.root "/assets/firefox/userChrome.css");
userContent = builtins.readFile (libs.root "/assets/firefox/userContent.css");
};
};
chromium.enable = true;
chromium = { };
};
}

View file

@ -1,5 +1,9 @@
{ lib, osconfig, ... }: {
programs.ghostty = lib.mkIf (osconfig.device.programs.terminal == "ghostty") {
{ lib, osconfig, ... }:
{
programs.ghostty =
lib.mkIf
(osconfig.device.programs.terminal.enable && osconfig.device.programs.terminal.name == "ghostty")
{
enable = true;
settings = {
theme = "catppuccin-mocha";

View file

@ -1,5 +1,8 @@
{ lib, osconfig, ... }: {
programs.kitty = lib.mkIf (osconfig.device.programs.terminal == "kitty") {
{ lib, osconfig, ... }:
{
programs.kitty =
lib.mkIf (osconfig.device.programs.terminal.enable && osconfig.device.programs.terminal == "kitty")
{
enable = true;
keybindings = {

View file

@ -1,11 +1,14 @@
{ lib, pkgs, ... }:
{
options.device.programs = {
terminal = lib.mkOption {
terminal = {
enable = lib.mkEnableOption "terminal";
name = lib.mkOption {
type = lib.types.str;
default = "ghostty";
description = "Terminal";
};
};
nixcord.enable = lib.mkEnableOption "nixcord";
tmux.enable = lib.mkEnableOption "tmux";