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; cider.enable = true;
proton-ge.enable = true; proton-ge.enable = true;
proton-apps.enable = true; proton-apps.enable = true;
firefox.enable = true;
chromium.enable = true;
}; };
} }

View file

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

View file

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

View file

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

View file

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