import ssh-cursed module

This commit is contained in:
Julien Malka 2023-07-01 16:46:53 +02:00
parent c898d56781
commit 147ca052d4
No known key found for this signature in database
GPG key ID: 6FC74C847011FD83

View file

@ -34,6 +34,7 @@ let
./modules/hosts.nix ./modules/hosts.nix
./modules/network.nix ./modules/network.nix
./modules/zsh.nix ./modules/zsh.nix
./modules/ssh-cursed.nix
disko.nixosModules.disko disko.nixosModules.disko
@ -50,38 +51,41 @@ let
, config , config
, lib , lib
, ... , ...
}: let }:
sopsFile = ./. + "/hosts/${config.networking.hostName}.yml"; let
in { sopsFile = ./. + "/hosts/${config.networking.hostName}.yml";
nix.nixPath = [ in
"home-manager=${home-manager}" {
"nixpkgs=${pkgs.path}" nix.nixPath = [
"nur=${nur}" "home-manager=${home-manager}"
]; "nixpkgs=${pkgs.path}"
# TODO: share nixpkgs for each machine to speed up local evaluation. "nur=${nur}"
#nixpkgs.pkgs = self.inputs.nixpkgs.legacyPackages.${system}; ];
# TODO: share nixpkgs for each machine to speed up local evaluation.
#nixpkgs.pkgs = self.inputs.nixpkgs.legacyPackages.${system};
#users.withSops = builtins.pathExists sopsFile; #users.withSops = builtins.pathExists sopsFile;
#sops.secrets = lib.mkIf (config.users.withSops) { #sops.secrets = lib.mkIf (config.users.withSops) {
# root-password-hash.neededForUsers = true; # root-password-hash.neededForUsers = true;
#}; #};
# sops.defaultSopsFile = lib.mkIf (builtins.pathExists sopsFile) sopsFile; # sops.defaultSopsFile = lib.mkIf (builtins.pathExists sopsFile) sopsFile;
nix.extraOptions = '' nix.extraOptions = ''
flake-registry = ${flake-registry}/flake-registry.json flake-registry = ${flake-registry}/flake-registry.json
''; builders-use-substitutes = true
'';
nix.registry = { nix.registry = {
home-manager.flake = home-manager; home-manager.flake = home-manager;
nixpkgs.flake = nixpkgs; nixpkgs.flake = nixpkgs;
nur.flake = nur; nur.flake = nur;
}; };
time.timeZone = "UTC"; time.timeZone = "UTC";
environment.systemPackages = [ environment.systemPackages = [
pkgs.kitty.terminfo pkgs.kitty.terminfo
]; ];
}) })
]; ];
in in
{ {
@ -94,8 +98,8 @@ in
++ [ ++ [
./hosts/epyc.nix ./hosts/epyc.nix
]; ];
};
}; };
};
flake.colmena = { flake.colmena = {
meta.nixpkgs = import nixpkgs { meta.nixpkgs = import nixpkgs {
@ -107,6 +111,6 @@ in
++ [ ++ [
./hosts/epyc.nix ./hosts/epyc.nix
]; ];
}; };
}; };
} }