Compare commits
2 commits
ce030913e3
...
dbb825abff
Author | SHA1 | Date | |
---|---|---|---|
dbb825abff | |||
fc669d5534 |
2 changed files with 19 additions and 16 deletions
|
@ -1,4 +1,8 @@
|
||||||
{ inputs, ... }:
|
{ lib, inputs, ... }:
|
||||||
|
let
|
||||||
|
webnsupdate = ../module.nix;
|
||||||
|
cargoToml = lib.importTOML ../Cargo.toml;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.treefmt-nix.flakeModule
|
inputs.treefmt-nix.flakeModule
|
||||||
|
@ -6,11 +10,7 @@
|
||||||
./tests.nix
|
./tests.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
flake.nixosModules =
|
flake.nixosModules = {
|
||||||
let
|
|
||||||
webnsupdate = ../module.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
default = webnsupdate;
|
default = webnsupdate;
|
||||||
inherit webnsupdate;
|
inherit webnsupdate;
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,10 @@
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
programs = {
|
programs = {
|
||||||
nixfmt.enable = true;
|
nixfmt.enable = true;
|
||||||
rustfmt.enable = true;
|
rustfmt = {
|
||||||
|
enable = true;
|
||||||
|
inherit (cargoToml.package) edition; # respect the package's edition
|
||||||
|
};
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
typos.enable = true;
|
typos.enable = true;
|
||||||
};
|
};
|
||||||
|
|
12
flake.lock
generated
12
flake.lock
generated
|
@ -37,11 +37,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1745526057,
|
"lastModified": 1745794561,
|
||||||
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
|
"narHash": "sha256-T36rUZHUART00h3dW4sV5tv4MrXKT7aWjNfHiZz7OHg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
|
"rev": "5461b7fa65f3ca74cef60be837fd559a8918eaa0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -82,11 +82,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1745780832,
|
"lastModified": 1745848521,
|
||||||
"narHash": "sha256-jGzkZoJWx+nJnPe0Z2xQBUOqMKuR1slVFQrMjFTKgeM=",
|
"narHash": "sha256-gNrTO3pEjmu3WiuYrUHJrTGCFw9v+qZXCFmX/Vjf5WI=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "b2b6c027d708fbf4b01c9c11f6e80f2800b5a624",
|
"rev": "763f1ce0dd12fe44ce6a5c6ea3f159d438571874",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue