Compare commits

..

3 Commits

6 changed files with 166 additions and 0 deletions

14
docs/homelab/snippets.md Normal file
View File

@ -0,0 +1,14 @@
# Snippets
## Traefik
```yaml
labels:
- traefik.enable=true
- traefik.http.routers.service.entrypoints=websecure
- traefik.http.routers.service.rule=HOST(`service.local.xeovalyte.dev`)
- traefik.http.services.service.loadbalancer.server.port=80
networks:
default:
external: true
name: proxy
```

16
docs/linux/commands.md Normal file
View File

@ -0,0 +1,16 @@
# Commands
## NixOS
Update system
```bash
sudo nixos-rebuild switch --flake ~/system/#xv-desktop
```
Update home manager
```bash
home-manager --flake ~/system/#xeovalyte@xv-desktop switch
```
Refresh input URL's
```bash
nix flake update
```

43
docs/linux/shortcuts.md Normal file
View File

@ -0,0 +1,43 @@
# Keyboard Shortcuts
## Neovim
**Basic**
- ++ctrl+h++/++j++/++k++/++l++ : move to left / down / up / right window
- ++alt+up++/++down++/++left++/++right++ : increase / decrease -> height / width
- ++alt+h++/++j++/++k++/++l++ : move lines to left / down / up / right
- ++n++/++shift+n++ : next / previous search result
- ++ctrl+s++ : save file
- ++space+f+n++ : new file
**Neotree**
- ++space+e++ : toggle neotree
- ++period++ : change root to directory
- ++a++ : add file
- ++d++ : delete file
- ++r++ : rename file
- ++shift+h++ : toggle hidden
- ++shift+i++ : toggle gitignore
**Telescope**
- ++space+f+f++ : find files
- ++space+f+g++ : search files
- ++space+f+b++ : switch buffers
**LSP**
- ++g+l++ : show diagnostics
- ++g+d++ : go to definition
- ++g+d++ : go to declaration
- ++shift+k++ : preview
**Spell**
- ++z+equal++ : list suggestions
- ++z+g++ : mark word as good
- ++z+w++ : mark word as bad
## Minecraft

42
flake.lock generated Normal file
View File

@ -0,0 +1,42 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1705331948,
"narHash": "sha256-qjQXfvrAT1/RKDFAMdl8Hw3m4tLVvMCc8fMqzJv0pP4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b8dd8be3c790215716e7c12b247f45ca525867e2",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-23.11",
"type": "indirect"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1705316053,
"narHash": "sha256-J2Ey5mPFT8gdfL2XC0JTZvKaBw/b2pnyudEXFvl+dQM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c3e128f3c0ecc1fb04aef9f72b3dcc2f6cecf370",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},
"root": "root",
"version": 7
}

30
flake.nix Normal file
View File

@ -0,0 +1,30 @@
{
description = "Development environment";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, nixpkgs-unstable }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
overlay-unstable = final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
};
in {
devShells.x86_64-linux.default =
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
fish
python311Packages.mkdocs-material
];
shellHook = ''
echo "Running a nix development environment"
exec fish
'';
};
};
}

21
mkdocs.yml Normal file
View File

@ -0,0 +1,21 @@
site_name: Notes from Timo Boomers
theme:
name: material
palette:
scheme: slate
primary: blue
accent: light blue
features:
- navigation.tabs
- content.code.copy
markdown_extensions:
- def_list
- pymdownx.keys
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences