refactor(homeModules/desktop): move browser config to module
This commit is contained in:
parent
a1001ddb4c
commit
26c3c43aee
4 changed files with 10 additions and 18 deletions
|
@ -1,10 +1,6 @@
|
||||||
{ config, pkgs, osConfig, ... }:
|
{ config, pkgs, osConfig, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
|
||||||
./desktop.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
cli.shell = "zsh";
|
cli.shell = "zsh";
|
||||||
cli.editor = "nvf";
|
cli.editor = "nvf";
|
||||||
cli.file-browser = "yazi";
|
cli.file-browser = "yazi";
|
||||||
|
@ -12,6 +8,7 @@
|
||||||
cli.git.email = "rafiq@rrv.sh";
|
cli.git.email = "rafiq@rrv.sh";
|
||||||
cli.git.defaultBranch = "prime";
|
cli.git.defaultBranch = "prime";
|
||||||
desktop.windowManager = "hyprland";
|
desktop.windowManager = "hyprland";
|
||||||
|
desktop.browser = "firefox";
|
||||||
|
|
||||||
home.shellAliases.v = "nvim";
|
home.shellAliases.v = "nvim";
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
|
@ -27,8 +24,11 @@
|
||||||
fzf
|
fzf
|
||||||
devenv
|
devenv
|
||||||
pantheon.rebuild
|
pantheon.rebuild
|
||||||
|
kitty
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = { TERMINAL = "kitty"; };
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
{pkgs,...}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./desktop/firefox.nix
|
|
||||||
];
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
kitty
|
|
||||||
];
|
|
||||||
home.sessionVariables = {
|
|
||||||
TERMINAL = "kitty";
|
|
||||||
BROWSER = "firefox";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,8 +1,12 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
|
config = lib.mkIf (config.desktop.browser == "firefox") {
|
||||||
|
home.persistence."/persist/home/rafiq".directories = [ ".mozilla/firefox" ];
|
||||||
|
home.sessionVariables.BROWSER = "firefox";
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.rafiq.id = 0;
|
profiles.rafiq.id = 0;
|
||||||
profiles.test.id = 1;
|
profiles.test.id = 1;
|
||||||
};
|
};
|
||||||
home.persistence."/persist/home/rafiq".directories = [ ".mozilla/firefox" ];
|
};
|
||||||
}
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
options.desktop = {
|
options.desktop = {
|
||||||
windowManager = lib.pantheon.mkStrOption;
|
windowManager = lib.pantheon.mkStrOption;
|
||||||
|
browser = lib.pantheon.mkStrOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue