Update deps, flake-parts, treefmt
This commit is contained in:
parent
25e0b8b054
commit
c581b9cf26
6 changed files with 163 additions and 60 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
68
flake.lock
68
flake.lock
|
@ -195,6 +195,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1688466019,
|
||||||
|
"narHash": "sha256-VeM2akYrBYMsb4W/MmBo1zmaMfgbL4cH3Pu8PGyIwJ0=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "8e8d955c22df93dbe24f19ea04f47a74adbdc5ec",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667395993,
|
"lastModified": 1667395993,
|
||||||
|
@ -318,7 +336,7 @@
|
||||||
"nifoc-overlay": {
|
"nifoc-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"bdfr-browser-flake": "bdfr-browser-flake",
|
"bdfr-browser-flake": "bdfr-browser-flake",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts_2",
|
||||||
"neovim-flake": "neovim-flake",
|
"neovim-flake": "neovim-flake",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
|
@ -377,11 +395,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689196637,
|
"lastModified": 1689230645,
|
||||||
"narHash": "sha256-ij4T7iwOrvdXZiV/iXoKhEarANvOkr24sLBhvaqZ7Qk=",
|
"narHash": "sha256-5PKMCkMQIhdW6DFpNVm4DOQ81PoSPsYcTL3fqlBUWpA=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "04dc69b62ec24a462585c1e705b711e2e05f3080",
|
"rev": "686945e0c07d68a6ca624438f1623fd3284ec15d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -409,6 +427,24 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-lib_2": {
|
||||||
|
"locked": {
|
||||||
|
"dir": "lib",
|
||||||
|
"lastModified": 1688049487,
|
||||||
|
"narHash": "sha256-100g4iaKC9MalDjUW9iN6Jl/OocTDtXdeAj7pEGIRh4=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "4bc72cae107788bf3f24f30db2e2f685c9298dc9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "lib",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685004253,
|
"lastModified": 1685004253,
|
||||||
|
@ -431,11 +467,13 @@
|
||||||
"attic": "attic",
|
"attic": "attic",
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
"disko": "disko",
|
"disko": "disko",
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nifoc-overlay": "nifoc-overlay",
|
"nifoc-overlay": "nifoc-overlay",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
|
@ -480,6 +518,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689243103,
|
||||||
|
"narHash": "sha256-IfBt2AD8qCwZs+m6BlOGEitBIkVJ0iMscMueb6QYUk4=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "f1dca68b908f3dd656b923b9fb62f7d755133662",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1667395993,
|
"lastModified": 1667395993,
|
||||||
|
|
132
flake.nix
132
flake.nix
|
@ -4,6 +4,17 @@
|
||||||
|
|
||||||
# nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
# nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
||||||
|
|
||||||
|
# Tools
|
||||||
|
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
|
||||||
|
treefmt-nix = {
|
||||||
|
url = "github:numtide/treefmt-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Overlays
|
||||||
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -43,57 +54,90 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, ... }:
|
outputs = inputs@{ flake-parts, ... }:
|
||||||
let
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
Styx = import ./system/flakes/Styx.nix {
|
flake =
|
||||||
inherit (inputs) nixpkgs home-manager nix-darwin;
|
let
|
||||||
inherit inputs;
|
Styx = import ./system/flakes/Styx.nix {
|
||||||
};
|
inherit (inputs) nixpkgs home-manager nix-darwin;
|
||||||
|
inherit inputs;
|
||||||
|
};
|
||||||
|
|
||||||
tanker = import ./system/flakes/tanker.nix {
|
tanker = import ./system/flakes/tanker.nix {
|
||||||
inherit (inputs) nixpkgs disko deploy-rs home-manager agenix attic;
|
inherit (inputs) nixpkgs disko deploy-rs home-manager agenix attic;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
mediaserver = import ./system/flakes/mediaserver.nix {
|
mediaserver = import ./system/flakes/mediaserver.nix {
|
||||||
inherit (inputs) nixpkgs deploy-rs home-manager agenix;
|
inherit (inputs) nixpkgs deploy-rs home-manager agenix;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
argon = import ./system/flakes/argon.nix {
|
argon = import ./system/flakes/argon.nix {
|
||||||
inherit (inputs) nixpkgs nixos-hardware deploy-rs home-manager agenix;
|
inherit (inputs) nixpkgs nixos-hardware deploy-rs home-manager agenix;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
weather-sdr = import ./system/flakes/weather-sdr.nix {
|
weather-sdr = import ./system/flakes/weather-sdr.nix {
|
||||||
inherit (inputs) nixpkgs deploy-rs home-manager agenix;
|
inherit (inputs) nixpkgs deploy-rs home-manager agenix;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
adsb-antenna = import ./system/flakes/adsb-antenna.nix {
|
adsb-antenna = import ./system/flakes/adsb-antenna.nix {
|
||||||
inherit (inputs) nixpkgs nixos-hardware deploy-rs home-manager;
|
inherit (inputs) nixpkgs nixos-hardware deploy-rs home-manager;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
darwinConfigurations = {
|
darwinConfigurations = {
|
||||||
"Styx" = Styx.system;
|
"Styx" = Styx.system;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
tanker = tanker.system;
|
tanker = tanker.system;
|
||||||
mediaserver = mediaserver.system;
|
mediaserver = mediaserver.system;
|
||||||
argon = argon.system;
|
argon = argon.system;
|
||||||
weather-sdr = weather-sdr.system;
|
weather-sdr = weather-sdr.system;
|
||||||
adsb-antenna = adsb-antenna.system;
|
adsb-antenna = adsb-antenna.system;
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy.nodes = {
|
deploy.nodes = {
|
||||||
tanker = tanker.deployment;
|
tanker = tanker.deployment;
|
||||||
mediaserver = mediaserver.deployment;
|
mediaserver = mediaserver.deployment;
|
||||||
argon = argon.deployment;
|
argon = argon.deployment;
|
||||||
weather-sdr = weather-sdr.deployment;
|
weather-sdr = weather-sdr.deployment;
|
||||||
adsb-antenna = adsb-antenna.deployment;
|
adsb-antenna = adsb-antenna.deployment;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.treefmt-nix.flakeModule
|
||||||
|
];
|
||||||
|
|
||||||
|
systems = [
|
||||||
|
"aarch64-darwin"
|
||||||
|
"x86_64-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
|
||||||
|
perSystem = { config, pkgs, ... }: {
|
||||||
|
treefmt = {
|
||||||
|
projectRootFile = "flake.nix";
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
fnlfmt.enable = true;
|
||||||
|
nixpkgs-fmt.enable = true;
|
||||||
|
shfmt.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
devShells.default = pkgs.mkShell {
|
||||||
|
name = "dotfiles";
|
||||||
|
|
||||||
|
inputsFrom = [
|
||||||
|
config.treefmt.build.devShell
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,10 +47,10 @@
|
||||||
;; Custom
|
;; Custom
|
||||||
(lsp.elixirls.setup (->> {:cmd [:elixir-ls]}
|
(lsp.elixirls.setup (->> {:cmd [:elixir-ls]}
|
||||||
(vim.tbl_extend :force default-config)))
|
(vim.tbl_extend :force default-config)))
|
||||||
;(lsp.nil_ls.setup (->> {:settings {:nil {:formatting {:command [:nixpkgs-fmt]}}}}
|
(lsp.nil_ls.setup (->> {:settings {:nil {:formatting {:command [:nixpkgs-fmt]}}}}
|
||||||
; (vim.tbl_extend :force default-config)))
|
(vim.tbl_extend :force default-config)))
|
||||||
(lsp.nixd.setup (->> {:settings {:formatting {:command [:nixpkgs-fmt]}}}
|
;; (lsp.nixd.setup (->> {:settings {:formatting {:command [:nixpkgs-fmt]}}}
|
||||||
(vim.tbl_extend :force default-config)))
|
;; (vim.tbl_extend :force default-config)))
|
||||||
(let [inlay-hints {:includeInlayParameterNameHints :all
|
(let [inlay-hints {:includeInlayParameterNameHints :all
|
||||||
:includeInlayParameterNameHintsWhenArgumentMatchesName false
|
:includeInlayParameterNameHintsWhenArgumentMatchesName false
|
||||||
:includeInlayFunctionParameterTypeHints true
|
:includeInlayFunctionParameterTypeHints true
|
||||||
|
|
|
@ -34,7 +34,7 @@ in
|
||||||
nodePackages.typescript-language-server
|
nodePackages.typescript-language-server
|
||||||
nodePackages.vscode-langservers-extracted
|
nodePackages.vscode-langservers-extracted
|
||||||
nodePackages.yaml-language-server
|
nodePackages.yaml-language-server
|
||||||
nixd
|
# nixd
|
||||||
taplo-lsp
|
taplo-lsp
|
||||||
|
|
||||||
# Diagnostic Tools
|
# Diagnostic Tools
|
||||||
|
|
|
@ -96,12 +96,12 @@ in
|
||||||
};
|
};
|
||||||
dracula-nvim = buildVimPluginFrom2Nix {
|
dracula-nvim = buildVimPluginFrom2Nix {
|
||||||
pname = "dracula.nvim";
|
pname = "dracula.nvim";
|
||||||
version = "2023-07-12";
|
version = "2023-07-13";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Mofiqul";
|
owner = "Mofiqul";
|
||||||
repo = "dracula.nvim";
|
repo = "dracula.nvim";
|
||||||
rev = "253b7fcee27564b2adfa7e7cea80c74cfbe04787";
|
rev = "9db13329e205aaee089e25be8113bd1faeca674e";
|
||||||
sha256 = "1hgs93lcncmb7afi126vkfpmi5r0z727hg232d2d2vyhnkd77ary";
|
sha256 = "1f79jazw5kp0ica4hdxpjry79qii8q6a0shg2rqkhpd0a8ydb8rg";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -429,12 +429,12 @@ in
|
||||||
};
|
};
|
||||||
nvim-autopairs = buildVimPluginFrom2Nix {
|
nvim-autopairs = buildVimPluginFrom2Nix {
|
||||||
pname = "nvim-autopairs";
|
pname = "nvim-autopairs";
|
||||||
version = "2023-06-18";
|
version = "2023-07-13";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "windwp";
|
owner = "windwp";
|
||||||
repo = "nvim-autopairs";
|
repo = "nvim-autopairs";
|
||||||
rev = "e8f7dd7a72de3e7b6626c050a802000e69d53ff0";
|
rev = "a16989a5453e0a0a8250deab340f429353876da4";
|
||||||
sha256 = "0lk78zvmf5cyyq4nmrzybi7dbpbwx499r0la4wza9h1gp4l7xvy7";
|
sha256 = "107yfxwr2lf7zksshsp58gp1qj2p848azim4xw8kvvdksba2092z";
|
||||||
fetchSubmodules = false;
|
fetchSubmodules = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue