Initial commit
This commit is contained in:
7
home-manager-modules/default.nix
Normal file
7
home-manager-modules/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./vscode.nix
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
30
home-manager-modules/firefox.nix
Normal file
30
home-manager-modules/firefox.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.firefox;
|
||||
ext = inputs.firefox-addons.packages.${pkgs.system};
|
||||
in
|
||||
{
|
||||
options = {
|
||||
firefox.enable = lib.mkEnableOption "enable firefox module";
|
||||
};
|
||||
|
||||
config.programs.firefox = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
profiles.default = {
|
||||
|
||||
bookmarks = [
|
||||
{
|
||||
name = "Wikipedia";
|
||||
tags = ["wiki"];
|
||||
url = "https://en.wikipedia.org";
|
||||
}
|
||||
];
|
||||
|
||||
extensions = [
|
||||
# ext."1password-x-password-manager"
|
||||
ext.ublock-origin
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
27
home-manager-modules/vscode.nix
Normal file
27
home-manager-modules/vscode.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, lib, nixpkgs, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.vscode;
|
||||
in
|
||||
{
|
||||
|
||||
options = {
|
||||
vscode.enable = lib.mkEnableOption "enable vscode module";
|
||||
};
|
||||
|
||||
config.programs.vscode = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
# package = pkgs.vscodium;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
bbenoist.nix
|
||||
# rokoroku.vscode-theme-darcula
|
||||
eamodio.gitlens
|
||||
oderwat.indent-rainbow
|
||||
ms-vsliveshare.vsliveshare
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
editor.tabSize = 2;
|
||||
};
|
||||
};
|
||||
}
|
||||
19
home-manager-modules/zsh.nix
Normal file
19
home-manager-modules/zsh.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.zsh;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
zsh.enable = lib.mkEnableOption "enable zsh module";
|
||||
};
|
||||
|
||||
config.programs.zsh = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
# ohMyZsh.enable = true;
|
||||
# ohMyZsh.theme = "robbyrussell";
|
||||
# ohMyZsh.plugins = [
|
||||
# "git"
|
||||
# ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user