some small changes for new user
This commit is contained in:
parent
d1db4bb343
commit
9a5cb97ade
@ -40,7 +40,7 @@
|
|||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
ivand = home-manager.lib.homeManagerConfiguration {
|
ivand = home-manager.lib.homeManagerConfiguration {
|
||||||
modules = [
|
modules = [
|
||||||
./home/laptop
|
./home/ivand
|
||||||
];
|
];
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
imports = [ ./neovim ./neomutt ./sway ./tmux.nix ./zsh.nix ./lf ];
|
imports = [ ./neovim ./neomutt ./sway ./tmux.nix ./zsh.nix ./lf ];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
nv.enable = true;
|
||||||
thunderbird = {
|
thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = { ivan = { isDefault = true; }; };
|
profiles = { ivan = { isDefault = true; }; };
|
56
home/ivand/programs/neovim/default.nix
Normal file
56
home/ivand/programs/neovim/default.nix
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
grammars = with pkgs.vimPlugins.nvim-treesitter-parsers; [
|
||||||
|
diff
|
||||||
|
regex
|
||||||
|
vimdoc
|
||||||
|
comment
|
||||||
|
markdown
|
||||||
|
ungrammar
|
||||||
|
gitignore
|
||||||
|
gitcommit
|
||||||
|
git_rebase
|
||||||
|
git_config
|
||||||
|
gitattributes
|
||||||
|
dockerfile
|
||||||
|
];
|
||||||
|
cfg = config.programs.nv;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ ./firenvim.nix ./py.nix ./hs.nix ./bash.nix ./nix.nix ./lua.nix ./js.nix ./util.nix ];
|
||||||
|
|
||||||
|
options.programs.nv = {
|
||||||
|
enable = lib.mkEnableOption "nv";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
viAlias = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
ripgrep
|
||||||
|
];
|
||||||
|
plugins = with pkgs.vimPlugins; grammars ++ [
|
||||||
|
nvim-treesitter
|
||||||
|
nvim-surround
|
||||||
|
nvim-ts-autotag
|
||||||
|
autoclose-nvim
|
||||||
|
barbar-nvim
|
||||||
|
cmp-nvim-lsp
|
||||||
|
comment-nvim
|
||||||
|
gitsigns-nvim
|
||||||
|
luasnip
|
||||||
|
catppuccin-nvim
|
||||||
|
nvim-cmp
|
||||||
|
nvim-lspconfig
|
||||||
|
nvim-web-devicons
|
||||||
|
plenary-nvim
|
||||||
|
telescope-nvim
|
||||||
|
toggleterm-nvim
|
||||||
|
vim-vinegar
|
||||||
|
lualine-nvim
|
||||||
|
];
|
||||||
|
extraLuaConfig = lib.fileContents ./nvim/default.lua;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,48 +0,0 @@
|
|||||||
{ pkgs, lib, ... }:
|
|
||||||
let grammars = with pkgs.vimPlugins.nvim-treesitter-parsers; [
|
|
||||||
diff
|
|
||||||
regex
|
|
||||||
vimdoc
|
|
||||||
comment
|
|
||||||
markdown
|
|
||||||
ungrammar
|
|
||||||
gitignore
|
|
||||||
gitcommit
|
|
||||||
git_rebase
|
|
||||||
git_config
|
|
||||||
gitattributes
|
|
||||||
dockerfile
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [ ./firenvim.nix ./py.nix ./hs.nix ./bash.nix ./nix.nix ./lua.nix ./js.nix ./util.nix ];
|
|
||||||
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
viAlias = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
ripgrep
|
|
||||||
];
|
|
||||||
plugins = with pkgs.vimPlugins; grammars ++ [
|
|
||||||
nvim-treesitter
|
|
||||||
nvim-surround
|
|
||||||
nvim-ts-autotag
|
|
||||||
autoclose-nvim
|
|
||||||
barbar-nvim
|
|
||||||
cmp-nvim-lsp
|
|
||||||
comment-nvim
|
|
||||||
gitsigns-nvim
|
|
||||||
luasnip
|
|
||||||
catppuccin-nvim
|
|
||||||
nvim-cmp
|
|
||||||
nvim-lspconfig
|
|
||||||
nvim-web-devicons
|
|
||||||
plenary-nvim
|
|
||||||
telescope-nvim
|
|
||||||
toggleterm-nvim
|
|
||||||
vim-vinegar
|
|
||||||
lualine-nvim
|
|
||||||
];
|
|
||||||
extraLuaConfig = lib.fileContents ./nvim/default.lua;
|
|
||||||
};
|
|
||||||
}
|
|
@ -110,20 +110,29 @@
|
|||||||
|
|
||||||
users = {
|
users = {
|
||||||
defaultUserShell = pkgs.zsh;
|
defaultUserShell = pkgs.zsh;
|
||||||
users.ivand = {
|
users = {
|
||||||
isNormalUser = true;
|
ivand = {
|
||||||
extraGroups = [
|
isNormalUser = true;
|
||||||
"wheel"
|
extraGroups = [
|
||||||
"adm"
|
"wheel"
|
||||||
"audio"
|
"adm"
|
||||||
"video"
|
"audio"
|
||||||
"kvm"
|
"video"
|
||||||
"render"
|
"kvm"
|
||||||
"flatpak"
|
"render"
|
||||||
"bluetooth"
|
"flatpak"
|
||||||
"mlocate"
|
"bluetooth"
|
||||||
"dialout"
|
"mlocate"
|
||||||
];
|
"dialout"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
vid = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [
|
||||||
|
"video"
|
||||||
|
"mlocate"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
extraGroups = { mlocate = { }; };
|
extraGroups = { mlocate = { }; };
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user