From b3233991827c1360a15b473f866034f061757190 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Thu, 18 Jul 2024 23:14:22 +0200 Subject: [PATCH] feat: Setup Workflows --- .github/workflows/flake-checks.yaml | 20 ++++++++++++++++++++ SwarselSystems.org | 6 +++--- index.html | 14 +++++++------- profiles/common/home.nix | 6 +++--- statix.toml | 5 +++++ 5 files changed, 38 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/flake-checks.yaml create mode 100644 statix.toml diff --git a/.github/workflows/flake-checks.yaml b/.github/workflows/flake-checks.yaml new file mode 100644 index 0000000..af58897 --- /dev/null +++ b/.github/workflows/flake-checks.yaml @@ -0,0 +1,20 @@ +name: Flake check +on: + pull_request: + push: + branches: [main] +jobs: + build: + name: Check flake + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Check Nix flake inputs + uses: DeterminateSystems/flake-checker-action@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v3 + - uses: DeterminateSystems/magic-nix-cache-action@main + - name: Check for dead code + run: git ls-files '*.nix' | nix run nixpkgs#deadnix + - name: Check for lints + run: nix run nixpkgs#statix -- check diff --git a/SwarselSystems.org b/SwarselSystems.org index 51a7e30..7e60edf 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -6288,7 +6288,7 @@ Lastly, I am defining some more packages here that the parser has problems findi # also read init.el file and install use-package packages programs.emacs = { enable = true; - package = (pkgs.emacsWithPackagesFromUsePackage { + package = pkgs.emacsWithPackagesFromUsePackage { config = ../../programs/emacs/init.el; package = pkgs.emacs-pgtk; alwaysEnsure = true; @@ -6327,7 +6327,7 @@ Lastly, I am defining some more packages here that the parser has problems findi }) ]; - }); + }; }; #+end_src @@ -6533,7 +6533,7 @@ The rest of this configuration is found here: }; }; }; - style = (builtins.readFile ../../programs/waybar/style.css); + style = builtins.readFile ../../programs/waybar/style.css; }; #+end_src diff --git a/index.html b/index.html index aa245ca..f9b11f8 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + SwarselSystems: NixOS + Emacs Configuration @@ -387,7 +387,7 @@

-This file has 41177 words spanning 10930 lines and was last revised on 2024-07-18 23:05:07 +0200. +This file has 41177 words spanning 10930 lines and was last revised on 2024-07-18 23:36:22 +0200.

@@ -437,7 +437,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry

-My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-18 23:05:07 +0200) +My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-07-18 23:36:22 +0200)

@@ -7548,7 +7548,7 @@ Lastly, I am defining some more packages here that the parser has problems findi # also read init.el file and install use-package packages programs.emacs = { enable = true; - package = (pkgs.emacsWithPackagesFromUsePackage { + package = pkgs.emacsWithPackagesFromUsePackage { config = ../../programs/emacs/init.el; package = pkgs.emacs-pgtk; alwaysEnsure = true; @@ -7587,7 +7587,7 @@ programs.emacs = { }) ]; - }); + }; }; @@ -7799,7 +7799,7 @@ programs.waybar = { }; }; }; - style = (builtins.readFile ../../programs/waybar/style.css); + style = builtins.readFile ../../programs/waybar/style.css; }; @@ -12925,7 +12925,7 @@ My laptop, sadly soon to be replaced by a new one, since most basic functions ar

Author: Leon Schwarzäugl

-

Created: 2024-07-18 Do 23:05

+

Created: 2024-07-18 Do 23:36

Validate

diff --git a/profiles/common/home.nix b/profiles/common/home.nix index 95c5fb8..7a83c0b 100644 --- a/profiles/common/home.nix +++ b/profiles/common/home.nix @@ -902,7 +902,7 @@ accounts.email = { # also read init.el file and install use-package packages programs.emacs = { enable = true; - package = (pkgs.emacsWithPackagesFromUsePackage { + package = pkgs.emacsWithPackagesFromUsePackage { config = ../../programs/emacs/init.el; package = pkgs.emacs-pgtk; alwaysEnsure = true; @@ -941,7 +941,7 @@ programs.emacs = { }) ]; - }); + }; }; programs.waybar = { @@ -1132,7 +1132,7 @@ programs.waybar = { }; }; }; - style = (builtins.readFile ../../programs/waybar/style.css); + style = builtins.readFile ../../programs/waybar/style.css; }; programs.firefox = { diff --git a/statix.toml b/statix.toml new file mode 100644 index 0000000..190b092 --- /dev/null +++ b/statix.toml @@ -0,0 +1,5 @@ +disabled = [ + "repeated_keys" +] +nix_version = '2.4' +ignore = ['.direnv']