about summary refs log tree commit diff
path: root/modules/default.nix (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-11-04ref(home/packages): don't install opensslFranck Cuny2-7/+0
It's usually needed for developing some rust projects, but this should be setup by the flake of that project.
2022-11-04ref: update rust's template to use craneFranck Cuny1-27/+32
2022-11-01ref: update the template for rust projectsFranck Cuny3-90/+131
Update the workflow to use `nix develop` commands instead of multiple steps (see https://determinate.systems/posts/nix-github-actions). Add a configuration for `cargo deny` to manage the dependencies I take on.
2022-10-31feat(home/packages): install gha-billing CLIFranck Cuny1-2/+7
2022-10-31fix(home/python): add types for requestsFranck Cuny1-0/+1
2022-10-31feat(tools/gha-billing): a CLI to report minutes left/used on GHAFranck Cuny3-0/+76
2022-10-29ref(home/python): install a few more packagesFranck Cuny1-2/+14
2022-10-29fix(home/git): remove a gerrit referenceFranck Cuny1-1/+0
2022-10-29fix(home): remove various shell functions related to gerritFranck Cuny3-12/+0
I'm not using gerrit anymore.
2022-10-29fix(tools): install dependencies correctlyFranck Cuny5-2/+7
For the python tools, we need the python runtime to be available. For this we need to specify the dependencies in `propagatedBuildInputs`. The same is true for flamegraph and perf.
2022-10-29ref(hosts/tahoe): disable cgit/gerrit/buildkite/sourcegraphFranck Cuny1-10/+0
Since I'm moving everything back to GitHub I don't need to run these services anymore.
2022-10-29flake.lock: UpdateFranck Cuny1-28/+28
Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/f8d2c22b0714629bb7f8e90071b12fa56cd620be' (2022-10-17) → 'github:nix-community/emacs-overlay/feea89fbc310afc87dff52ae0a1bc4afabfcbd43' (2022-10-29) • Updated input 'emacs-overlay/nixpkgs': 'github:NixOS/nixpkgs/d0f9857448e77df50d1e0b518ba0e835b797532a' (2022-10-17) → 'github:NixOS/nixpkgs/f44ba1be526c8da9e79a5759feca2365204003f6' (2022-10-28) • Updated input 'gh-ssh-keys': 'git+ssh://git@github.com/fcuny/gh-ssh-keys?ref=main&rev=b1b7df6d529835d97734c3cb214d2be5ea593900' (2022-10-16) → 'git+ssh://git@github.com/fcuny/gh-ssh-keys?ref=main&rev=a7f3234679c81a46324a1979c1bc5e7752473c2e' (2022-10-22) • Updated input 'naersk/nixpkgs': 'github:NixOS/nixpkgs/d0f9857448e77df50d1e0b518ba0e835b797532a' (2022-10-17) → 'github:NixOS/nixpkgs/f44ba1be526c8da9e79a5759feca2365204003f6' (2022-10-28) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/1935dd8fdab8e022a9d958419663162fd840014c' (2022-10-17) → 'github:nixos/nixpkgs/b62e0c1523295ac3316a9bc514f013173e5ad7ba' (2022-10-29) • Updated input 'nur': 'github:nix-community/NUR/5b866cfe1ffcb2dc004c862d7da2ff5c6dc66e51' (2022-10-17) → 'github:nix-community/NUR/248c0ebe4a3c450fa1aa90b3c4a7a847a61fe574' (2022-10-29) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/94b0f300dd9a23d4e851aa2a947a1511d3410e2d' (2022-10-12) → 'github:cachix/pre-commit-hooks.nix/1b436f36e2812c589e6d830e3223059ea9661100' (2022-10-24) • Updated input 'rust': 'github:oxalica/rust-overlay/ae87512a3e8ee5bfffd42dadce041e7bdcd05a38' (2022-10-17) → 'github:oxalica/rust-overlay/34d76c0a001d81a0fac342698ce7926da37b8ea5' (2022-10-29) • Updated input 'x509-tools': 'github:fcuny/x509-info/406eaab3073651acff3c09deeb22e864fc9d5b23' (2022-10-22) → 'github:fcuny/x509-info/80e1db79a95a245542d4a9ddc6eac13d717c4ac8' (2022-10-25)
2022-10-27ref(users/fcuny): and just like that ...Franck Cuny25-797/+0
2022-10-27feat(ops/github): archive notes.fcuny.netFranck Cuny1-3/+1
The content has been merged with fcuny.net - I can keep everything in one site.
2022-10-25ref(tools/perf-flamegraph): move to a proper shell scriptFranck Cuny4-15/+48
I don't want to inline shell scripts inside nix configuration, as it prevents me to use `shellcheck` to validate them for example. The script is now moved into the tool directory, and is a tiny bit more flexible, so that I can run it as my own user.
2022-10-25ref(ops/github): finished the migration of my repositoriesFranck Cuny1-54/+59
All the repositories should be on GitHub now, and archived if they are not relevant anymore.
2022-10-24feat(ops/github): import more repositoriesFranck Cuny1-0/+184
2022-10-24fix(ops/github): create resources in correct orderFranck Cuny1-0/+2
We first need to create a repository before we can create the default branch. For the default branch to be set, we also need the repository to contain a commit, which is achieved with the `auto_init' attribute. We can always push with `--force' to overwrite that initial commit when doing the migration.
2022-10-24feat(system/fonts): add cascadiaFranck Cuny1-0/+1
2022-10-24ref(tools/mpd-stats): delete the projectFranck Cuny13-490/+3
It's been moved to its own repository at https://github.com/fcuny/mpd-stats Update the list of repositories managed by terraform.
2022-10-23feat(home/packages): install git-broomFranck Cuny1-0/+1
2022-10-23ref(ops/github): only allow merge commitFranck Cuny1-3/+3
While not great, this is the default workflow on GitHub. It's also what allows my `git-broom` CLI to work with branches on GitHub.
2022-10-23feat(tools/git-broom): CLI to delete local and remote branchesFranck Cuny3-0/+376
This tool helps to keep only the branches that are relevant: the ones that have not been merged yet into the main branch on the principal remote repository.
2022-10-22ref(tools/git-bootstrap): this is replaced by terraformFranck Cuny4-250/+0
2022-10-22fix(flake): remove unstable URL for nixpkgsFranck Cuny2-18/+0
I was not using it.
2022-10-22feat(home/packages): install the tool x509-infoFranck Cuny4-4/+122
2022-10-22feat(ops/github): new repository: x509-infoFranck Cuny1-0/+4
2022-10-22fix(ops/github): some fixes related to repositories creationFranck Cuny1-3/+3
2022-10-22feat(templates): add a template for rustFranck Cuny10-0/+188
To use it, run: ``` nix flake init -t github:fcuny/world#rust ```
2022-10-17ref(tools/python): make mypy happyFranck Cuny3-21/+28
2022-10-17feat(home/python): add lsp/mypy packagesFranck Cuny1-3/+4
2022-10-17flake.lock: UpdateFranck Cuny1-37/+37
Flake lock file updates: • Updated input 'agenix': 'github:ryantm/agenix/6acb1fe5f8597d5ce63fc82bc7fcac7774b1cdf0' (2022-09-25) → 'github:ryantm/agenix/a630400067c6d03c9b3e0455347dc8559db14288' (2022-10-15) • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/8e54a8980aa438c4f35807ad676acbf7578acce3' (2022-09-20) → 'github:nix-community/emacs-overlay/f8d2c22b0714629bb7f8e90071b12fa56cd620be' (2022-10-17) • Updated input 'emacs-overlay/nixpkgs': 'github:NixOS/nixpkgs/8e0f159ff2d17faabbce0d60b14f50710e882eab' (2022-10-02) → 'github:NixOS/nixpkgs/d0f9857448e77df50d1e0b518ba0e835b797532a' (2022-10-17) • Updated input 'gh-ssh-keys': 'git+ssh://git@github.com/fcuny/gh-ssh-keys?ref=main&rev=de753cd61c1b75879010c4d2452598ada629e489' (2022-10-03) → 'git+ssh://git@github.com/fcuny/gh-ssh-keys?ref=main&rev=b1b7df6d529835d97734c3cb214d2be5ea593900' (2022-10-16) • Updated input 'home-manager': 'github:nix-community/home-manager/4a3d01fb53f52ac83194081272795aa4612c2381' (2022-06-25) → 'github:nix-community/home-manager/b81e128fc053ab3159d7b464d9b7dedc9d6a6891' (2022-10-17) • Updated input 'naersk/nixpkgs': 'github:NixOS/nixpkgs/8e0f159ff2d17faabbce0d60b14f50710e882eab' (2022-10-02) → 'github:NixOS/nixpkgs/d0f9857448e77df50d1e0b518ba0e835b797532a' (2022-10-17) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2a57890da5727cafa0607a27a5e2f4201645dfba' (2022-10-02) → 'github:nixos/nixpkgs/1935dd8fdab8e022a9d958419663162fd840014c' (2022-10-17) • Updated input 'nixpkgs-unstable': 'github:nixos/nixpkgs/8e0f159ff2d17faabbce0d60b14f50710e882eab' (2022-10-02) → 'github:nixos/nixpkgs/d0f9857448e77df50d1e0b518ba0e835b797532a' (2022-10-17) • Updated input 'nur': 'github:nix-community/NUR/392b26288ad1cdebd03eac17adb70491f9f392d3' (2022-10-02) → 'github:nix-community/NUR/5b866cfe1ffcb2dc004c862d7da2ff5c6dc66e51' (2022-10-17) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/2e4a708918e14fdbd534cc94aaa9470cd19b2464' (2022-10-02) → 'github:cachix/pre-commit-hooks.nix/94b0f300dd9a23d4e851aa2a947a1511d3410e2d' (2022-10-12) • Updated input 'rust': 'github:oxalica/rust-overlay/5db6b63124ccedd61e896ec98def85fb4e6668f4' (2022-10-02) → 'github:oxalica/rust-overlay/ae87512a3e8ee5bfffd42dadce041e7bdcd05a38' (2022-10-17) • Updated input 'rust/flake-utils': 'github:numtide/flake-utils/7e2a3b3dfd9af950a856d66b0a7d01e3c18aa249' (2022-07-04) → 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07)
2022-10-17build(deps): bump cachix/install-nix-action from 17 to 18dependabot[bot]1-1/+1
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2022-10-16ref(tools/git-blame-stats): rewrite the tool in pythonFranck Cuny6-101/+113
The tool can calculate some stats about authors in a git repository. It computes the number of lines that are authored by authors at a given revision (HEAD by default), and the number of commits.
2022-10-15ops(github): archive the repository govanityFranck Cuny1-3/+1
2022-10-15ref(seqstat): rewrite from go to pythonFranck Cuny8-194/+53
This is a simple script, there's no benefit in having this in go. Having it Python makes it easier to extend with panda or other libraries in the future if I need more statistics too.
2022-10-10ci: update the flake once a weekFranck Cuny1-3/+1
This is going to fail anyway since it will try to update a flake from a private repository and it won't work. But once I make the repository public it will start working. Also remove the token, want the PR to be open as the github-actions bot.
2022-10-09feat(ops/github): set the name of the default branchFranck Cuny1-0/+13
From now on we should always be using 'main'. If a project requires 'master', it will need to be set explicitly.
2022-10-09ref(ops/github): simplify the configurationFranck Cuny4-373/+125
Move all the repositories in a YAML file, instead of declaring each repository. This will simplify the management as I'll be introducing more resources to manage my repositories.
2022-10-08feat(ops/github): add the repository twitter-backupFranck Cuny1-0/+14
2022-10-08ref(tools/govanity): moved back to its own repositoryFranck Cuny13-313/+14
It's back at https://github.com/fcuny/govanity
2022-10-07ci: add GitHub action to update flakes and dependabotFranck Cuny2-0/+28
2022-10-07fix(flake): set the correct path for various pre-commit binariesFranck Cuny1-4/+4
2022-10-05ref(fcuny/exp): delete containerd-to-vmFranck Cuny7-1510/+0
The code is in https://github.com/fcuny/containerd-to-vm
2022-10-05ref(fcuny/notes): delete notesFranck Cuny24-1608/+0
The notes are at https://github.com/fcuny/notes.fcuny.net
2022-10-05ref(fcuny/blog): delete the blogFranck Cuny29-1007/+0
The blog moved back to https://github.com/fcuny/fcuny.net
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-15