aboutsummaryrefslogtreecommitdiff
path: root/nix (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-12-19formatFranck Cuny1-1/+2
2024-12-19switch to the newer version of nixfmtFranck Cuny25-131/+271
`nixfmt-rfc-style' replaces `nixfmt-classic'. It's actively maintained, but also changes the style, so this commit touches all the files in the repository.
2024-12-19use treefmt to format all the filesFranck Cuny3-11/+7
2024-12-19sign using the key from 1passwordFranck Cuny1-1/+1
2024-12-18cleanup ssh match blocksFranck Cuny1-6/+6
2024-12-18use ssh instead of http when working on my repositoriesFranck Cuny1-0/+3
2024-12-18add overlay for the hashi toolFranck Cuny1-0/+10
2024-12-18install some tools only on work machineFranck Cuny3-10/+19
2024-12-18add support for overlays and add one for `sapi'Franck Cuny2-0/+8
2024-12-18fish defaults are fineFranck Cuny1-9/+0
2024-12-16install rustupFranck Cuny1-0/+3
2024-12-16enable per repository hooksFranck Cuny1-1/+1
See https://gitolite.com/gitolite/cookbook#adding-your-own-update-hooks for more details.
2024-12-16add myself to the podman groupFranck Cuny1-1/+1
2024-12-16fix alias for ukctxFranck Cuny2-8/+12
2024-12-16enable fish integration for direnvFranck Cuny1-0/+1
2024-12-16configure the git email correctlyFranck Cuny1-3/+9
The syntax for `hasconfig' was not correct, and as a result the wrong email was selected. I verified this one is working as expected.
2024-12-16update the alias to fetch the kube configFranck Cuny1-1/+2
2024-12-16some more cleanupFranck Cuny3-34/+35
2024-12-16refactor home-managerFranck Cuny8-226/+277
Only install what's needed for specific OSes.
2024-12-16move gitotlite to vm-synologyFranck Cuny3-1/+155
2024-12-15run `ddns-updater' on `vm-synology'Franck Cuny2-1/+22
It has a small UI and the configuration with the secrets is managed with `agenix'.
2024-12-14use agenix to manage secrets in the repositoryFranck Cuny1-0/+2
2024-12-09fix misconfiguration of the bootloaderFranck Cuny4-5/+12
2024-12-09move each machine into a directoryFranck Cuny11-12/+14
it will be easier to break down some configs.
2024-12-09set hostname and correct ssh keyFranck Cuny5-10/+17
2024-12-08move the configuration for hetzner under machinesFranck Cuny11-146/+68
2024-12-08fix conflictFranck Cuny2-40/+2
2024-12-08more refactoringFranck Cuny21-634/+116
2024-12-08refactor overall configurationFranck Cuny10-0/+546
The configuration of the various hosts and home-manager was becoming a bit complex for no valid reasons. Try to simplify this a bit.
2024-12-03add shell aliases for kubectl and kubieFranck Cuny1-0/+5
2024-12-02install zoom on the MBA.Franck Cuny1-0/+3
2024-12-02install k9sFranck Cuny1-0/+1
2024-12-02minor tweaks related to k8sFranck Cuny1-2/+3
2024-12-02don't install zoomFranck Cuny2-1/+4
It's managed by IT, it's causing an error every time. I'll install it only on the MBA.
2024-12-01update to 24.11Franck Cuny2-2/+2
2024-12-01remove unused fontsFranck Cuny3-20/+1
2024-11-29install a few more toolsFranck Cuny1-23/+39
2024-11-18fix what I brokeFranck Cuny1-2/+5
- `nix.settings.auto-optimise-store` is known to corrupt the Nix Store, please use `nix.optimise.automatic` instead. - The option definition `nix.gc.dates' in `/nix/store/vqcfrawi0yjswl7gnr73ly0k8jcyljmy-source/nix/hosts/common/nix.nix' no longer has any effect; please remove it.
2024-11-18fix commentFranck Cuny1-1/+1
2024-11-18some tuning for nixFranck Cuny1-2/+3
2024-11-18more configuration for ezaFranck Cuny2-0/+11
2024-11-18add eza, an alternative to lsFranck Cuny1-0/+7
2024-11-18configuration for yt-dlpFranck Cuny3-2/+36
2024-11-17install a few more media toolsFranck Cuny1-1/+3
2024-11-17manage a few more things with nix instead of homebrewFranck Cuny2-15/+22
2024-11-17move machine configurations under darwin and nixosFranck Cuny15-62/+45
Don't manage fonts on Darwin with homebrew.
2024-11-08install font dejavuFranck Cuny1-4/+7
2024-11-06run excalidraw in a container and make it available over httpsFranck Cuny1-5/+27
2024-11-05align commentFranck Cuny1-2/+1
2024-11-04stop displaying some messages from brewFranck Cuny1-0/+2
2024-11-04install mpv (mpv.io)Franck Cuny1-0/+3
2024-11-04formattingFranck Cuny1-10/+2
2024-10-27don't like this oneFranck Cuny1-2/+0
2024-10-27move firewall configuration to the network moduleFranck Cuny3-25/+32
2024-10-27this may simplify things ?Franck Cuny1-22/+28
2024-10-26centralize more configurations related to darwinFranck Cuny3-22/+13
2024-10-26fix typo for the name of the cascadia fontFranck Cuny1-2/+2
2024-10-26don't pin to a specific version of GoFranck Cuny1-26/+5
Drop python packages, they will be installed as needed per projects.
2024-10-26add the font cascadiaFranck Cuny1-6/+4
2024-10-26configure the host's name for the MBAFranck Cuny1-3/+5
2024-10-26automatically install updates for MacOSFranck Cuny1-0/+1
2024-10-21prevent webcrawler to index pagesFranck Cuny1-1/+2
2024-10-20add credential managerFranck Cuny1-0/+1
2024-10-18delete packages since they don't exist anymoreFranck Cuny1-5/+1
2024-10-14delete more python codeFranck Cuny1-12/+0
2024-10-14delete a bunch of python related stuffFranck Cuny1-4/+0
2024-10-08backup the repositoriesFranck Cuny1-8/+24
2024-10-08new ssh public key for my userFranck Cuny1-7/+7
2024-10-05clean up the devshell setupFranck Cuny1-42/+37
2024-10-05enable tmuxFranck Cuny1-0/+21
2024-09-28install nixos-rebuildFranck Cuny1-0/+1
So that I can build the configuration for remote hosts
2024-09-28install pandocFranck Cuny1-0/+1
2024-09-28update some of the fontsFranck Cuny1-2/+3
2024-09-21sort repositories by ageFranck Cuny1-0/+1
2024-09-21a few more tweaks for cgitFranck Cuny1-4/+6
2024-09-21let's try once againFranck Cuny1-11/+3
2024-09-21try to configure using the cgit moduleFranck Cuny1-65/+31
2024-09-21I think this is the correct configurationFranck Cuny1-3/+3
2024-09-21configure fcgiwrap properlyFranck Cuny1-3/+3
This is related to https://discourse.nixos.org/t/51419
2024-09-21tweak cgitrcFranck Cuny1-1/+1
2024-09-13add fcuny to git + sudo accessFranck Cuny2-2/+6
2024-09-13we need a state version now for MacosFranck Cuny2-0/+4
2024-09-13update deps and remove nur/firefox overlaysFranck Cuny1-3/+1
2024-09-13minior changes to devshell configurationFranck Cuny1-9/+12
2024-09-13add a TODO for wildcatFranck Cuny1-0/+1
2024-09-13just use the default fish setupFranck Cuny1-36/+0
2024-09-13watch for changes to the devshell configurationFranck Cuny2-2/+5
2024-08-05use default path for gitoliteFranck Cuny1-3/+2
2024-08-05we need configFranck Cuny1-1/+1
2024-08-05store gitolite data on /srvFranck Cuny1-3/+3
2024-08-05additional settingsFranck Cuny1-1/+57
2024-08-05attempt at configuring cgit and gitoliteFranck Cuny1-0/+55
2024-08-05fix nginx configuration for fcuny.netFranck Cuny1-2/+2
2024-08-05another attempt for nginx and acmeFranck Cuny1-0/+8
2024-08-05initial nginx configuration for fcuny.netFranck Cuny2-0/+31
2024-08-05set the ssh key for user fcunyFranck Cuny3-7/+11
2024-08-05add a new host: wildcatFranck Cuny9-2/+111
This is a VPS on hetzner.
2024-08-03add a linux VM as a new hostFranck Cuny3-0/+55
The linux VM runs with UTM, and it has a very basic configuration for now.
2024-07-22no need to install go related packagesFranck Cuny1-7/+0
There's no more go things in this repo
2024-07-22remove commands from devenvFranck Cuny1-44/+0
2024-07-22bump nixos to 24.05Franck Cuny2-2/+5
2024-05-23clean up a bunch of home-manager stuffFranck Cuny5-187/+1
No need for alacritty, tmux, firefox, and zsh.
2024-05-06clean up python packagesFranck Cuny1-12/+0
2024-05-06more deletionFranck Cuny2-5/+0
2024-05-05move ipconverter under `src`Franck Cuny2-2/+0
2024-05-04move seqstatFranck Cuny2-7/+0
2024-05-04move the slocalc under `src`Franck Cuny2-4/+1
2024-05-04don't install the script for pizzaFranck Cuny2-2/+0
2024-05-04ensure we install coreutilFranck Cuny1-0/+1
2024-05-03more tweaksFranck Cuny1-2/+2
2024-05-02tmux stuffFranck Cuny1-0/+4
2024-05-02drop zshFranck Cuny6-10/+5
2024-05-02i dont knowFranck Cuny1-0/+1
2024-05-02install and configure tmux for alacrittyFranck Cuny2-21/+43
2024-05-01configure fish and install alacrittyFranck Cuny2-0/+49
2024-04-29enable ruffFranck Cuny1-0/+1
2024-04-29add `robloxenv` to manage hashi credentialsFranck Cuny3-3/+8
I never know how to get the credentials for some hashi components. This script helps with getting the credentials I need at the edge.
2024-04-29ignore all of github.rbx.comFranck Cuny1-1/+1
2024-04-28add a script to fetch cheeseboard's menuFranck Cuny3-4/+10
Delete the version in go.
2024-04-23install required python packages for ruff-lspFranck Cuny1-0/+3
2024-04-23install and configure aspellFranck Cuny1-1/+13
2024-04-22install aspellFranck Cuny1-0/+6
2024-04-19switch to fish as the default shellFranck Cuny5-2/+20
2024-04-16move the `slocalc` to a python scriptFranck Cuny2-1/+4
2024-04-15install nomad packFranck Cuny1-0/+1
2024-04-15add and remove some packagesFranck Cuny2-3/+4
2024-03-12fix a typo and update 1password configFranck Cuny1-1/+3
2024-03-12installing vscode through nix does not work well for meFranck Cuny1-109/+0
2024-03-11switch to absolute pathFranck Cuny6-5/+120
2024-03-11reorganize common files for hostsFranck Cuny1-2/+3
Move the common configuration for nix to its own file.
2024-03-07share configuration for shell utilsFranck Cuny5-80/+66
2024-03-06install seqstat on the work profileFranck Cuny1-1/+3
2024-03-06enable copilot for vscodeFranck Cuny1-0/+2
2024-03-06rename `tools` to `packages` to follow conventionFranck Cuny1-1/+1
The convention is to use `pkgs` or `packages` for overlays and definition of custom packages. Since I'm already using `pkg` for go, I prefer to use `packages` for my scripts.
2024-03-06set correct git email in the profilesFranck Cuny3-1/+8
2024-03-06use absolute path by using `$self`Franck Cuny1-2/+2
2024-03-06install my own scriptsFranck Cuny3-3/+20
This is the first step to re-enable installing custom scripts. The next step will be to rename `tools` to `packages`, and then if needed I will be able to support overlays.
2024-03-04add configuration for my work machineFranck Cuny5-6/+91
2024-03-04don't sign git commitsFranck Cuny1-17/+1
Simplify the configuration as this is not something I currently use.
2024-03-04move all home-manager settings under the profilesFranck Cuny6-5/+414
2024-03-04create profiles for home-managerFranck Cuny1-0/+45
To make it easier to support multiple systems with this configuration, move the current configuration for my personal machine to a profile named `personal.nix`. When I add a work machine the profile can be named `work.nix` and all configurations related to that system will live there.
2024-03-04common macos preferences are moved to a moduleFranck Cuny1-0/+1
2024-03-04extract shared code for darwin to a new moduleFranck Cuny1-0/+1
2024-03-04nix libraries and modules will be under `nix/`Franck Cuny2-0/+131
2023-12-09delete even more unused configurationsFranck Cuny3-78/+0
2023-08-21remove custom toolsFranck Cuny2-2/+0
2023-07-05add x509-info back to the list of toolsFranck Cuny1-0/+1
2023-05-08modules/wireguard: move the module to the right locationFranck Cuny2-45/+1
2023-05-08module for homelabFranck Cuny1-0/+1
2023-05-07home: get rid of mail / gpg modulesFranck Cuny1-1/+0
I don't use GPG anymore and I don't read mail in Emacs anymore.
2023-04-03hosts/carmel: reconfigure the host as a routerFranck Cuny1-1/+1
I'm not using it as a desktop, and the current router is getting old and will likely fail in the near future. It's also a debian machine configured manually, so let's reconfigure carmel as our new router. There are three NICs in the host: 2 are 10Gb and one is 1Gb. The 1Gb will be used as the upstream interface, and one of the 10Gb will be for the LAN. There are 2 VLANs to configure: one for IoT devices and one for guest.
2023-03-27modules/sendsms: gate the unit with a fileFranck Cuny1-0/+1
To prevent the unit to be triggered multiple times if the host has already rebooted, we create a gate file when we're done running, and before running, we check if the file exists. Enable the service on tahoe. Don't restart the unit when its definition has changed.
2023-03-11secrets: use homeage to manage secrets for home-managerFranck Cuny1-0/+8
Instead of using agenix for all the secrets, I can use homeage for secrets that are related to my user sessions. Secrets by default will be store under `~/.secrets'. They are encrypted using `age' and to decrypt them, a key is expected to be located under `~/.age/key.txt'. The last place where I was using `pass' (and so GPG too) was for the secrets for `mbsync': this change adds a secret for fastmail to the repository and update `mbsync' configuration to use it.
2023-03-04ref: don't use my custom tools for nowFranck Cuny2-4/+0
I'm rewriting them in go and they are not ready to be used yet.
2023-01-07feat(home/packages): add tool masked-emailsFranck Cuny1-0/+1
2023-01-03feat: update to nix 22.11Franck Cuny1-8/+12
2022-11-30feat(modules/sensdms): a module to send an SMSFranck Cuny1-0/+1
A new module `sendsms` is added to send SMS when the host reboots. It's triggered by systemd when the host boots and once the network is available.
2022-10-22feat(home/packages): install the tool x509-infoFranck Cuny1-0/+1
2022-10-03feat(home/packages): install gh-ssh-keysFranck Cuny1-0/+1
Add a new input to the flake configuration to install `gh-ssh-keys`.
2022-09-26feat(naersk): use naersk to build packages with rustFranck Cuny2-7/+15
naersk makes it simple to build rust project in nix. For this to work, `mkSystem` and `mkHomeManagerConfiguration` needs to pass naersk to my overlays. I dropped the support to run the tools with `nix run .#tools...`: I don't use this in practice and it's not making things simpler. I dropped `nix-linter` from the check, it's reporting many errors without helping me to fix them.
2022-09-22ref(home-manager): don't use home-manager when building the hostFranck Cuny4-39/+32
When rebuilding the host (through `nixos-rebuild switch --flake`) I don't want to rebuild also my home-manager configuration. I want these to be two different steps. I rebuild the home-manager configuration more frequently and it's a waste of time and CPU to rebuild the world every time. This is a pretty large refactoring: - move checks back into the flake: if I modify a check, the configuration for `pre-commits` is not regenerated, as the file with the checks is not monitored with `direnv` (I could probably configure it for it, but not now) - remove `home.nix` from the host level configuration - introduce a `mkHomeManagerConfiguration` function to manage the different user@host - fix a warning with the rust overlay
2022-09-18ref(flake): move all the checks to external moduleFranck Cuny1-0/+31
This improve the readability of the flake configuration, the check can be in their own module.
2022-09-18ref(flake): drop naersk for nowFranck Cuny1-1/+0
I'll go and refactor correctly and properly the support for rust packages, this is not working and I'm doing something stupid.
2022-09-07feat(flake): use naersk to build rust projectsFranck Cuny1-0/+1
The flake naersk is used to build rust crates with nix. Change-Id: Ia1c95de34fe802ae6a6b623dc169ca502fa72f12
2022-08-22feat(rust): add an overlay to install rustFranck Cuny1-0/+1
Installing the rust overlay to get the various tools installed. This is done by a new module for home-manager, and is installed only on my laptop at the moment. Change-Id: I80c1633ca04da82f4321a0687a05d1df7c523702
2022-08-06ref(tools): simplify the import of toolsFranck Cuny1-5/+1
In the `mkSystem` function, instead of defining each tools, let's import all of them at once. This works both with installing a tool from a module or running them from the CLI. Change-Id: Ia44ff9a45b54a1ecea6f6b02b4cad2956799f627 Reviewed-on: https://cl.fcuny.net/c/world/+/682 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-18feat(tools/git-blame-stats): add the tool to nix configurationFranck Cuny1-0/+1
Change-Id: Iea045c74a32dc26b9a39da79f49308a85ec237cc Reviewed-on: https://cl.fcuny.net/c/world/+/446 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-18feat(ipconverter): add the tool to nixFranck Cuny1-1/+4
Change-Id: Ie98ad07ac4de61fc25f9a9821fb5617d12ea5f70 Reviewed-on: https://cl.fcuny.net/c/world/+/442 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-10fix(fmt): correct formatting for all nix filesFranck Cuny2-13/+17
This was done by running `nixpkgs-fmt .'. Change-Id: I4ea6c1e759bf468d08074be2111cbc7af72df295 Reviewed-on: https://cl.fcuny.net/c/world/+/404 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-09ref(nix): move the mkSystem function to its own fileFranck Cuny2-35/+28
Make the default system be x86-linux. Change-Id: I13e00e4d4cb8b7c49cc549509e37a6d0f022a051 Reviewed-on: https://cl.fcuny.net/c/world/+/299 Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-09ref(nix): rename lib/ to nix/Franck Cuny2-0/+80
Change-Id: If1e608b89b39bd5a53a37b873833a7ea881cb418 Reviewed-on: https://cl.fcuny.net/c/world/+/298 Reviewed-by: Franck Cuny <franck@fcuny.net>