about summary refs log tree commit diff
path: root/nix/default.nix (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-04feat(ops/github): add notes.fcuny.net and containerd-to-vmFranck Cuny2-0/+28
2022-10-04feat(ops/github): add repository for fcuny.netFranck Cuny1-0/+14
2022-10-04ref(tools/ipconverter): rewrite the tool in pythonFranck Cuny6-124/+55
No need to do this with Go, a python script is fine. We also don't need to set shell aliases for this: when we install the tool, we can create symbolic links to `ip2int` and `int2ip`.
2022-10-04ops(terraform): individual actions for init/plan/applyFranck Cuny4-5/+43
Don't do all of these actions together, instead provide helpers for both init, plan, and apply.
2022-10-03ref(tools/ssh-key-to-forge): replaced by gh-ssh-keysFranck Cuny4-591/+0
See https://github.com/fcuny/gh-ssh-keys
2022-10-03feat(home/packages): install gh-ssh-keysFranck Cuny4-5/+132
Add a new input to the flake configuration to install `gh-ssh-keys`.
2022-10-02fix(home/rust): switch to the latest stable toolchainFranck Cuny1-1/+1
2022-10-02meta: bump flake dependenciesFranck Cuny1-26/+30
2022-10-02feat(ops/github): new repository: gh-ssh-keysFranck Cuny1-0/+14
2022-09-30ops(github): terraform configuration to manage GitHubFranck Cuny5-0/+354
Import current GitHub repositories into terraform. This should be the main way (going forward) to interact with GitHub to create / manage the repositories and ensuring I'm consistent in the ways I want to use it.
2022-09-26fix(home/element): I want the wayland versionFranck Cuny1-1/+1
2022-09-26feat(naersk): use naersk to build packages with rustFranck Cuny6-12/+52
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-25fix(flake): call some programs with `nix run .#tools.<name>`Franck Cuny1-12/+10
2022-09-24fix(user/blog): update list of ssh keysFranck Cuny1-2/+2
2022-09-24fix(home/wm): unlock gnome-keyring when loggingFranck Cuny3-17/+19
2022-09-24fix(modules/home): delete the moduleFranck Cuny2-36/+1
The configuration for home-manager is set using `home-manager' directly, instead of applying updates all at once (OS and home-manager).
2022-09-24fix(home/shell): set value for PKG_CONFIG_PATHFranck Cuny1-0/+4
I don't know why I need to do this, but otherwise I can't build rust packages with `cargo build' if it's not set ...
2022-09-24fix(system/packages): install openssl-dev packageFranck Cuny1-0/+1
I don't think I should have to do this, it's also not solving the problem I have, but it should not hurt either ...
2022-09-23fix(hosts): the WM manager needs to be in home.nixFranck Cuny4-6/+8
2022-09-23fix(home/waybar): fix the configuration after 22.05Franck Cuny1-29/+27
The configuration for the modules has changed as of 22.05 (see [1]). This change is to remove the `modules` section from the settings. [1] https://github.com/nix-community/home-manager/commit/7c320a53254609d9814280a34e312b7f00fd160b
2022-09-22feat(flake): add nix-linter to the checksFranck Cuny1-0/+1
2022-09-22ref(home-manager): don't use home-manager when building the hostFranck Cuny10-132/+191
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 Cuny2-33/+34
This improve the readability of the flake configuration, the check can be in their own module.
2022-09-18ref(flake): drop naersk for nowFranck Cuny4-53/+11
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-18ref(flake): remove pre-commit for golangFranck Cuny1-34/+1
There has to be a nicer way, and I might just completely drop golang support anyway in this repo.
2022-09-18feat(home/python): add a few more packagesFranck Cuny1-2/+8
Having requests installed by default is useful to write quickly a script, and the black formatter is to enforce consistency.
2022-09-17feat(home/git): sign commits with my ssh keyFranck Cuny1-0/+4
GitHub supports signing commits with a ssh key now (git has supported this feature for a while but it was not yet available on GitHub). More details at [1]. I used the steps documented in [2] for nix. [1] https://github.blog/changelog/2022-08-23-ssh-commit-verification-now-supported/ [2] https://jeppesen.io/git-commit-sign-nix-home-manager-ssh/
2022-09-07feat(tools/sendsms): build sendsms with nix via naerskFranck Cuny3-4/+23
I can now run `nix build .#tools.sendsms` to build the tool, or get it deployed on a machine. Change-Id: I82c733be466adb229d98414fd1229e05f355dd7d
2022-09-07feat(flake): use naersk to build rust projectsFranck Cuny3-2/+37
The flake naersk is used to build rust crates with nix. Change-Id: Ia1c95de34fe802ae6a6b623dc169ca502fa72f12
2022-09-07feat(tool/sendsms): a CLI to send SMSFranck Cuny6-0/+1382
This is a new tool to send SMS via Twilio's API. For now it supports a single subcommand: reboot. Using that subcommand, a SMS will be send with the name of the host and the IP address for the defined network interface. This is useful to be notified when one of my machine reboot, and what's the IP for the main interface (this is useful since my ISP does not provide a static IP). Change-Id: I5886a2c77ebd344ab3befa51a6bdd3d65bcc85d4
2022-09-07meta: ignore build for rust projectsFranck Cuny1-0/+1
Change-Id: I0235d851df781430abe87d503c652bd97b6e1f1a
2022-09-07fix(home/rust): better setupFranck Cuny1-5/+11
Configure the latest beta for rust and pull some tools with it. Change-Id: Icd7e3a7efd2a5485ab7380a9d077613c03617905
2022-09-07feat(modules/packages): install pkg-configFranck Cuny1-1/+1
Change-Id: Iaa041a70b386d25c581a3a3c2afe860b86740618
2022-09-07fix(home/email): remove inbox tag for archived emailsFranck Cuny1-1/+4
Change-Id: If0b49ce46875f9f5bd35b792596796bcdb85b3e9
2022-09-04feat(home/terraform): install the LSP serverFranck Cuny1-1/+4
Change-Id: I436d66239d25e69e90c43c036afde5dd3bf18915
2022-08-22feat(rust): add an overlay to install rustFranck Cuny6-1/+63
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-15ref(modules/backup): only keep 4 weeks worth of backupsFranck Cuny1-1/+1
Change-Id: I9aa813d57c80f431468d97dfc945d9a0439723f1 Reviewed-on: https://cl.fcuny.net/c/world/+/719 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-08-15ref(modules/sourcegraph): stop backing upFranck Cuny1-15/+0
There's no need to make a backup for sourcegraph, all the things I might care about (at this stage at least) can be easily regenerated. Change-Id: I4b592c9007ce57b56b04a94b43ad2ab8759ce891 Reviewed-on: https://cl.fcuny.net/c/world/+/718 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-08-15ci(pre-commit): add a few more checksFranck Cuny1-2/+40
Add a mechanism to run checks for go (fmt/mod tidy) and one for terraform. Fix the configuration for shellcheck (it was not checking the files). Change-Id: I1d250b96bd22838eddf624fda6b4d78d5da3e39f Reviewed-on: https://cl.fcuny.net/c/world/+/715 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-08-15fix(fmt): apply gofmt on some filesFranck Cuny1-2/+1
Change-Id: I9d1ff1b7de5cb89ffcf40bc91e794f7ff420c1e8 Reviewed-on: https://cl.fcuny.net/c/world/+/717 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-08-15fix(shellcheck): apply recommendations from shellcheckFranck Cuny1-3/+3
Change-Id: Id11ad998c30d6e863ab3b43552b9fe248a0d6c7f Reviewed-on: https://cl.fcuny.net/c/world/+/716 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-08-15feat(ops/gcp-backups): add terraform configuration for GCP bucketsFranck Cuny5-0/+193
This terraform configuration is to create the buckets that I'm using for various buckets. Doing thi