Compare commits

...

9 commits

Author SHA1 Message Date
3ebc87b8ba feat(host:rick): install cmus 2024-09-11 22:21:01 +02:00
41f48aa208 feat(host:work): integrate Nix app in Gnome
Add statement for Nix-installed application into Gnome application in
order have Firefox, Foot and other available
2024-09-10 10:49:51 +02:00
50a709fae2 refactor(host:work): reorganise work files 2024-09-10 10:46:56 +02:00
e2a58cf55a feat(host:work): install and configure cmus 2024-09-09 08:41:13 +02:00
630daabbd8 feat(work): add specific configuration 2024-09-09 08:41:13 +02:00
5994859096 feat(neovim): install stuff about Terraform 2024-09-09 08:41:13 +02:00
491c67e56b feat: install Firefox on work host 2024-09-09 08:41:13 +02:00
44d24230d4 fix: put correct git informations to work account 2024-09-09 08:41:13 +02:00
c61d4e89bd First working version of home-manager alone
Useful for my work laptop by now
2024-09-09 08:41:13 +02:00
7 changed files with 104 additions and 9 deletions

View file

@ -34,6 +34,7 @@ in {
pkgs.go-task
pkgs.convco
pkgs.typos
pkgs.home-manager
];
};
});
@ -72,11 +73,7 @@ in {
system = "x86_64-linux";
specialArgs = {
inherit stateVersion inputs;
hostname = "luci";
username = "ephase";
hostConfig = {
desktop = true;
};
};
modules = [
./nixos/default.nix
@ -99,6 +96,20 @@ in {
./home-manager/default.nix
];
};
work = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ nixgl.overlay ];
};
extraSpecialArgs = {
inherit stateVersion inputs;
hostname = "work";
username = "yorick-barbanneau";
};
modules = [
./home-manager/default.nix
];
};
};
};
}

View file

@ -15,5 +15,4 @@
]++ lib.optional (
builtins.pathExists ../hosts/${hostname}/includes/home-manager.nix
) ../hosts/${hostname}/includes/home-manager.nix;
}

View file

@ -6,6 +6,9 @@
foot.enable = false;
imv.enable = false;
};
audio = {
cmus.enable = true;
};
cli = {
direnv.enable = true;
ghq.enable = true;

View file

@ -0,0 +1,26 @@
{ ... }: {
config.modules = {
application = {
zathura.enable = true;
foot.enable = true;
};
audio.cmus.enable = true;
cli = {
direnv.enable = true;
ghq.enable = true;
git = {
enable = true;
userEmail = "ybarbanneau@sellsy.com";
};
neovim.enable = true;
starship.enable = true;
utils.enable = true;
vifm.enable = true;
zsh.enable = true;
};
web.firefox = {
enable = true;
enableNixGL = true;
};
};
}

View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
dejavu_fonts
font-awesome
lato
liberation_ttf
libertine
libnotify
(nerdfonts.override {
fonts = [
"FiraCode"
];
})
noto-fonts-emoji
noto-fonts-cjk
slurp
wl-clipboard
];
targets.genericLinux.enable = true;
xdg.mime.enable = true;
}

View file

@ -28,13 +28,17 @@ in
# LSP Servers
clang-tools
hadolint
helm-ls
lua-language-server
marksman
nil
nodePackages.bash-language-server
python3Packages.python-lsp-server
shellcheck
# yaml-language-server
terraform-lsp
tflint
yaml-language-server
# Formatters
nixfmt-rfc-style
@ -115,12 +119,15 @@ in
p.cpp
p.cmake
p.dockerfile
p.hcl
p.helm
p.latex
p.lua
p.llvm
p.markdown
p.markdown_inline
p.python
p.terraform
p.vim
p.yaml
])
@ -158,6 +165,7 @@ in
type = "lua";
config = ( builtins.readFile ./files/whichkey.lua );
}
vim-helm
];
};
};

View file

@ -2,6 +2,21 @@ local lspconfig = require('lspconfig')
lspconfig.bashls.setup {}
lspconfig.clangd.setup {}
lspconfig.helm_ls.setup{
settings = {
['helm-ls'] = {
logLevel = "info",
valuesFiles = {
mainValuesFile = "values.yaml",
lintOverlayValuesFile = "values.lint.yaml",
additionalValuesFilesGlobPattern = "values*.yaml"
}
},
yamlls = {
enabled = false,
}
}
}
lspconfig.lua_ls.setup {
single_file_support = true,
flags = {
@ -14,14 +29,25 @@ lspconfig.pylsp.setup {
settings = {
pylsp = {
plugins = {
pylint = {
pylint = {
enabled = true
}
}
}
}
}
lspconfig.yamlls.setup{}
lspconfig.terraformls.setup{}
lspconfig.tflint.setup{}
lspconfig.yamlls.setup{
settings = {
yaml = {
schemas = {
["https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.30.0/all.json"] = {"k8s/**/*.yaml", "cluster/**/*.yaml",},
["https://taskfile.dev/schema.json"] = {"**/Taskfile.*", "**/taskfile.*",},
},
},
},
}
vim.api.nvim_create_autocmd('LspAttach', {
desc = 'LSP actions',