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, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./desktop.nix
|
||||
];
|
||||
|
||||
cli.shell = "zsh";
|
||||
cli.editor = "nvf";
|
||||
cli.file-browser = "yazi";
|
||||
|
@ -12,6 +8,7 @@
|
|||
cli.git.email = "rafiq@rrv.sh";
|
||||
cli.git.defaultBranch = "prime";
|
||||
desktop.windowManager = "hyprland";
|
||||
desktop.browser = "firefox";
|
||||
|
||||
home.shellAliases.v = "nvim";
|
||||
home.shellAliases = {
|
||||
|
@ -27,8 +24,11 @@
|
|||
fzf
|
||||
devenv
|
||||
pantheon.rebuild
|
||||
kitty
|
||||
];
|
||||
|
||||
home.sessionVariables = { TERMINAL = "kitty"; };
|
||||
|
||||
programs.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 = {
|
||||
enable = true;
|
||||
profiles.rafiq.id = 0;
|
||||
profiles.test.id = 1;
|
||||
};
|
||||
home.persistence."/persist/home/rafiq".directories = [ ".mozilla/firefox" ];
|
||||
};
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
options.desktop = {
|
||||
windowManager = lib.pantheon.mkStrOption;
|
||||
browser = lib.pantheon.mkStrOption;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue