cleanup, deadnix, format

This commit is contained in:
Grisha Shipunov 2025-05-27 10:17:27 +02:00
parent 6ffe2d49ee
commit 7223ca43a7
5 changed files with 29 additions and 37 deletions

View file

@ -54,7 +54,6 @@
outputs = outputs =
inputs@{ inputs@{
authentik-nix,
lanzaboote, lanzaboote,
lix-module, lix-module,
microvm, microvm,
@ -79,25 +78,29 @@
"immich" "immich"
]; ];
microvm-builder = (nixpkgs-ver: vm-list: builtins.listToAttrs ( microvm-builder = (
map (vm: { nixpkgs-ver: vm-list:
name = vm; builtins.listToAttrs (
value = nixpkgs-ver.lib.nixosSystem { map (vm: {
system = "x86_64-linux"; name = vm;
specialArgs = { inherit inputs; }; value = nixpkgs-ver.lib.nixosSystem {
modules = [ system = "x86_64-linux";
sops-nix.nixosModules.sops specialArgs = { inherit inputs; };
microvm.nixosModules.microvm modules = [
sops-nix.nixosModules.sops
microvm.nixosModules.microvm
./hosts/${vm} ./hosts/${vm}
./modules/server ./modules/server
./modules/wg ./modules/wg
]; ];
}; };
}) vm-list }) vm-list
)); )
microvms = (microvm-builder nixpkgs microvm-stable-list) );
// (microvm-builder nixpkgs-unstable microvm-unstable-list); microvms =
(microvm-builder nixpkgs microvm-stable-list)
// (microvm-builder nixpkgs-unstable microvm-unstable-list);
in in
microvms microvms
// { // {

View file

@ -1,4 +1,4 @@
{ self, ... }: { ... }:
let let
proxy-conf = '' proxy-conf = ''
client_max_body_size 50M; client_max_body_size 50M;

View file

@ -65,9 +65,7 @@
let let
editorconf = editorconf =
if config.services.emacs.defaultEditor then if config.services.emacs.defaultEditor then
{ { }
EDITOR = "emacsclient";
}
else else
{ {
EDITOR = "nvim"; EDITOR = "nvim";

View file

@ -1,6 +1,4 @@
{ {
lib,
config,
pkgs, pkgs,
... ...
}: }:
@ -14,15 +12,8 @@
}; };
}; };
# integrate fzf into shell, >23.05 only # integrate fzf into shell, >23.05 only
programs = programs.fzf = {
with lib; keybindings = true;
if (toInt (elemAt (splitVersion config.system.nixos.release) 0) >= 23) then fuzzyCompletion = true;
{ };
fzf = {
keybindings = true;
fuzzyCompletion = true;
};
}
else
{ };
} }

View file

@ -12,7 +12,7 @@
environment.systemPackages = environment.systemPackages =
let let
xwayland-satellite-git = pkgs.xwayland-satellite.overrideAttrs ( xwayland-satellite-git = pkgs.xwayland-satellite.overrideAttrs (
final: prev: { final: _prev: {
version = "git"; version = "git";
cargoHash = "sha256-MaF2FyR3HvQAKkZKa8OO/5jbO64/Ncv7+JqHda4jN50="; cargoHash = "sha256-MaF2FyR3HvQAKkZKa8OO/5jbO64/Ncv7+JqHda4jN50=";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {