Compare commits

...

2 commits

Author SHA1 Message Date
Julien Malka e018572545
chore: update lix 2024-10-12 20:22:06 +02:00
Julien Malka 2b0bd95587
chore: update luj keys 2024-10-12 20:21:53 +02:00
3 changed files with 75 additions and 76 deletions

View file

@ -298,18 +298,17 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1727301466, "lastModified": 1728506278,
"narHash": "sha256-357IEOtI+QZy9NzmKhU0vAS7aY528Uvh2n/gXQFgRpY=", "narHash": "sha256-ZAPqzjR86En31Yfau0auQmkDuyzr2QfD8yW+7205e8A=",
"ref": "refs/changes/46/1946/1", "ref": "refs/heads/main",
"rev": "2c74949780830b5cfcd913ef24514dc8e7db5f14", "rev": "9865ebaaa618d82a7b7fdccc636cbaa7dfa42427",
"revCount": 16269, "revCount": 16335,
"type": "git", "type": "git",
"url": "https://gerrit.lix.systems/lix" "url": "https://git.lix.systems/lix-project/lix.git"
}, },
"original": { "original": {
"ref": "refs/changes/46/1946/1",
"type": "git", "type": "git",
"url": "https://gerrit.lix.systems/lix" "url": "https://git.lix.systems/lix-project/lix.git"
} }
}, },
"nix2container": { "nix2container": {

118
flake.nix
View file

@ -4,7 +4,7 @@
# To update all inputs: # To update all inputs:
# $ nix flake update --recreate-lock-file # $ nix flake update --recreate-lock-file
inputs = { inputs = {
lix.url = "git+https://gerrit.lix.systems/lix?ref=refs/changes/46/1946/1"; lix.url = "git+https://git.lix.systems/lix-project/lix.git";
lix.inputs.nixpkgs.follows = "nixpkgs"; lix.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko"; disko.url = "github:nix-community/disko";
@ -43,68 +43,80 @@
}; };
outputs = outputs =
{ flake-parts {
, ... flake-parts,
} @ inputs: ...
(flake-parts.lib.evalFlakeModule }@inputs:
{ inherit inputs; } (flake-parts.lib.evalFlakeModule { inherit inputs; } (
({ self, inputs, ... }: { { self, inputs, ... }:
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ]; {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
imports = [ imports = [
./configurations.nix ./configurations.nix
# ./modules/monitoring/flake-module.nix # ./modules/monitoring/flake-module.nix
# ./pkgs/flake-module.nix # ./pkgs/flake-module.nix
# ./templates # ./templates
]; ];
perSystem = { self', pkgs, ... }: { perSystem =
devShells.default = pkgs.mkShellNoCC { { self', pkgs, ... }:
buildInputs = [ {
pkgs.ipmitool devShells.default = pkgs.mkShellNoCC {
pkgs.colmena buildInputs = [
pkgs.ipmitool
pkgs.colmena
pkgs.python3.pkgs.invoke pkgs.python3.pkgs.invoke
#Until nixos-anywhere is packaged #Until nixos-anywhere is packaged
pkgs.python3.pkgs.deploykit pkgs.python3.pkgs.deploykit
pkgs.mypy pkgs.mypy
pkgs.pixiecore pkgs.pixiecore
pkgs.dnsmasq pkgs.dnsmasq
pkgs.python3.pkgs.netaddr pkgs.python3.pkgs.netaddr
pkgs.qemu_kvm pkgs.qemu_kvm
pkgs.openssh pkgs.openssh
pkgs.gitMinimal # for git flakes pkgs.gitMinimal # for git flakes
pkgs.rsync pkgs.rsync
pkgs.nix pkgs.nix
pkgs.coreutils pkgs.coreutils
pkgs.curl # when uploading tarballs pkgs.curl # when uploading tarballs
pkgs.gnugrep pkgs.gnugrep
pkgs.findutils pkgs.findutils
pkgs.gnused # needed by ssh-copy-id pkgs.gnused # needed by ssh-copy-id
# sops dependencies # sops dependencies
pkgs.age pkgs.age
pkgs.yq-go pkgs.yq-go
] ++ pkgs.lib.optional (pkgs.stdenv.isLinux) pkgs.mkpasswd; ] ++ pkgs.lib.optional (pkgs.stdenv.isLinux) pkgs.mkpasswd;
}; };
packages = { packages = {
# netboot = pkgs.callPackage ./modules/netboot/netboot.nix { # netboot = pkgs.callPackage ./modules/netboot/netboot.nix {
# # this nixosSystem is built for x86_64 machines regardless of the host machine # # this nixosSystem is built for x86_64 machines regardless of the host machine
# pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; # pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
# inherit (inputs.nixpkgs.lib) nixosSystem; # inherit (inputs.nixpkgs.lib) nixosSystem;
# extraModules = [ # extraModules = [
# self.inputs.nur.nixosModules.nur # self.inputs.nur.nixosModules.nur
# { _module.args.inputs = self.inputs; } # { _module.args.inputs = self.inputs; }
# ]; # ];
# }; # };
# netboot-pixie-core = pkgs.callPackage ./modules/netboot/netboot-pixie-core.nix { # netboot-pixie-core = pkgs.callPackage ./modules/netboot/netboot-pixie-core.nix {
# inherit (self'.packages) netboot; # inherit (self'.packages) netboot;
# }; # };
};
}; };
};
flake = { flake = {
hydraJobs = inputs.nixpkgs.lib.mapAttrs' (name: config: inputs.nixpkgs.lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel) self.nixosConfigurations // { hydraJobs =
devShells = self.devShells.x86_64-linux.default; inputs.nixpkgs.lib.mapAttrs' (
}; name: config: inputs.nixpkgs.lib.nameValuePair "nixos-${name}" config.config.system.build.toplevel
) self.nixosConfigurations
// {
devShells = self.devShells.x86_64-linux.default;
};
}; };
})).config.flake; }
)).config.flake;
} }

View file

@ -1,15 +1,3 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM9Uzb7szWlux7HuxLZej9cBR5MhLz/vaAPPfSoozt2k ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGa+7n7kNzb86pTqaMn554KiPrkHRGeTJ0asY1NjSbpr julien@tower
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHoYi9YFzovZfwrY3BUA3QqcyBE8gfNTncbs3qqkLbyY ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIADCpuBL/kSZShtXD6p/Nq9ok4w1DnlSoxToYgdOvUqo julien@fischer
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDCKfPoMNrnyNWH6J1OvQ+n1rvSS9Sc2iZf6E1JQC+L4 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5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