terminal
This commit is contained in:
parent
8ad9377b38
commit
0f6fdf63f1
5 changed files with 259 additions and 250 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 = { };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Reference in a new issue