diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml new file mode 100644 index 00000000..85b68639 --- /dev/null +++ b/.forgejo/workflows/lint.yml @@ -0,0 +1,22 @@ +name: Lint + +on: [push] + +jobs: + lint: + runs-on: docker + env: + container: + image: ghcr.io/catthehacker/ubuntu:js-20.04 + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/cachix/install-nix-action@v22 + env: + with: + nix_path: nixpkgs=channel:nixos-unstable + - run: | + sed -i '/^access-tokens/ d' /etc/nix/nix.conf + nix profile install 'nixpkgs#deadnix' 'nixpkgs#statix' 'nixpkgs#yamllint' + statix check . + deadnix -f + yamllint . diff --git a/.forgejo/workflows/nix.yml b/.forgejo/workflows/nix.yml new file mode 100644 index 00000000..a67c4890 --- /dev/null +++ b/.forgejo/workflows/nix.yml @@ -0,0 +1,22 @@ +name: Nix + +# on: [push] + +jobs: + lint: + runs-on: docker + env: + container: + image: ghcr.io/catthehacker/ubuntu:js-20.04 + steps: + - uses: actions/checkout@v3 + - name: Check Nix flake inputs + uses: https://github.com/DeterminateSystems/flake-checker-action@v5 + - uses: https://github.com/cachix/install-nix-action@v22 + env: + with: + nix_path: nixpkgs=channel:nixos-unstable + - name: Run `nix flake check` + run: | + sed -i '/^access-tokens/ d' /etc/nix/nix.conf + nix run '.#' -- -V diff --git a/.forgejo/workflows/plex_update.yml b/.forgejo/workflows/plex_update.yml new file mode 100644 index 00000000..edbe071d --- /dev/null +++ b/.forgejo/workflows/plex_update.yml @@ -0,0 +1,37 @@ +name: Plex Update + +on: + push: + branches: + - main + - ci + schedule: + - cron: '0 0 * * *' + +jobs: + update: + runs-on: docker + container: + image: ghcr.io/catthehacker/ubuntu:js-20.04 + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable + - env: + VAULT_ADDR: ${{ secrets.VAULT_ADDR }} + VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} + run: | + git config user.name "Forgejo Actions Bot" + git config user.email "<>" + + # Run Update script + ./pkgs/plex-pass/update.sh + + git add ./pkgs/plex-pass/ + + # Push if changed + if git status ./nixos/pkgs/plex-pass/ | grep -q "to be committed"; then + git commit -m "Update Plex" + git push origin main + fi diff --git a/common/desktop/home.nix b/common/desktop/home.nix index 67bce461..b3d01d00 100644 --- a/common/desktop/home.nix +++ b/common/desktop/home.nix @@ -38,7 +38,6 @@ in jellyfin-media-player krita neofetch - nicotine-plus nixpkgs-review qmk signal-desktop @@ -98,7 +97,6 @@ in xdg.autoStart = { packages = with pkgs; [ element-desktop - signal-desktop firefox discord ]; diff --git a/common/hm-modules/nvim/default.nix b/common/hm-modules/nvim/default.nix index c64f1fc0..bbaf6e72 100644 --- a/common/hm-modules/nvim/default.nix +++ b/common/hm-modules/nvim/default.nix @@ -76,11 +76,6 @@ with lib; }; }; - # codecompanion = { - # enable = true; - # - # }; - vimwiki = { enable = true; settings = { diff --git a/common/hm-modules/nvim/keybinds.nix b/common/hm-modules/nvim/keybinds.nix index 132fe248..17d96b72 100644 --- a/common/hm-modules/nvim/keybinds.nix +++ b/common/hm-modules/nvim/keybinds.nix @@ -59,16 +59,6 @@ key = "fr"; action = ":Telescope frecency"; } - { - mode = "n"; - key = "zf"; - action = ":Telescope spell_suggest"; - } - # { - # mode = "n"; - #key = "ob"; - # action = mkRaw "require('obsidian_picker').obsidian_picker"; - #} # Commenting { mode = "n"; diff --git a/nixos/hosts/olympus/mailserver/configuration.nix b/nixos/hosts/olympus/mailserver/configuration.nix index efff9fbf..c434d166 100644 --- a/nixos/hosts/olympus/mailserver/configuration.nix +++ b/nixos/hosts/olympus/mailserver/configuration.nix @@ -102,6 +102,7 @@ in { }; }; services = { + postfix.relayHost = "smtp.ziggozakelijk.nl"; postfix.relayPort = 587;