enforce new flake schema. formatting.
This commit is contained in:
parent
4b0a90e00d
commit
ecf5132cbb
121 changed files with 1606 additions and 1554 deletions
|
|
@ -1 +1,2 @@
|
|||
# shellcheck shell=bash
|
||||
use flake
|
||||
|
|
|
|||
|
|
@ -1,23 +1,20 @@
|
|||
---
|
||||
name: Python Nix Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
on: # yamllint disable-line
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
name: Build and Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Nix
|
||||
uses: cachix/install-nix-action@v18
|
||||
with:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Nix
|
||||
uses: cachix/install-nix-action@v18
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
- name: Run nix flake check
|
||||
run: nix flake check
|
||||
- name: Run nix flake check
|
||||
run: nix flake check
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
config = self.checks.${system}.pre-commit-check.config;
|
||||
inherit (self.checks.${system}.pre-commit-check) config;
|
||||
inherit (config) package configFile;
|
||||
script = ''
|
||||
${pkgs.lib.getExe package} run --all-files --config ${configFile}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
let
|
||||
cfg = config.services.flask_hello;
|
||||
domain = config.networking.domain;
|
||||
inherit (config.networking) domain;
|
||||
fqdn = if (cfg.nginx.subdomain != "") then "${cfg.nginx.subdomain}.${domain}" else domain;
|
||||
|
||||
python-with-packages = pkgs.python3.withPackages (
|
||||
|
|
@ -109,7 +109,7 @@ in
|
|||
users.users."${cfg.user}" = {
|
||||
home = "/var/lib/${cfg.user}";
|
||||
isSystemUser = true;
|
||||
group = cfg.group;
|
||||
inherit (cfg) group;
|
||||
};
|
||||
users.groups."${cfg.group}" = { };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue