add pepe
This commit is contained in:
parent
d6f8fe252b
commit
fff0b232ab
4 changed files with 81 additions and 58 deletions
79
flake.nix
79
flake.nix
|
@ -76,6 +76,13 @@
|
|||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
writeCommand = krops.packages.${system}.writeCommand;
|
||||
|
||||
pullNetworkPasswords = pkgs.writers.writeBashBin "pull-network-passwords" ''
|
||||
echo "download network passwords from $1"
|
||||
'';
|
||||
pushNetworkPasswords = pkgs.writers.writeBashBin "push-network-passwords" ''
|
||||
echo "push network passwords to $1"
|
||||
'';
|
||||
in
|
||||
{
|
||||
# deployment
|
||||
|
@ -95,12 +102,26 @@
|
|||
};
|
||||
|
||||
# colmena
|
||||
devShell.x86_64-linux =
|
||||
devShell.${system} =
|
||||
pkgs.mkShell {
|
||||
buildInputs = [ colmena.packages.${system}.colmena ];
|
||||
buildInputs = [
|
||||
colmena.packages.${system}.colmena
|
||||
pushNetworkPasswords
|
||||
pullNetworkPasswords
|
||||
nixpkgs-fmt.defaultPackage.${system}
|
||||
];
|
||||
};
|
||||
|
||||
colmena = {
|
||||
colmena =
|
||||
let
|
||||
sopsModule = name: { lib, ... }: {
|
||||
sops.defaultSopsFile = lib.mkForce "${secrets}/secrets/${name}.yaml";
|
||||
imports = [
|
||||
sops-nix.nixosModules.sops
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
|
@ -111,7 +132,6 @@
|
|||
unstable = nixpkgs-unstable.legacyPackages.${pkgs.system};
|
||||
polygon-art = polygon-art.packages.${pkgs.system};
|
||||
})
|
||||
|
||||
];
|
||||
};
|
||||
specialArgs = {
|
||||
|
@ -119,26 +139,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
sterni = { name, nodes, pkgs, ... }: {
|
||||
deployment = {
|
||||
buildOnTarget = true;
|
||||
targetHost = "sterni.private";
|
||||
keys = {
|
||||
"onion_id_pepe".text = "yolo";
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./nixos/configs/sterni/configuration.nix
|
||||
sops-nix.nixosModules.sops
|
||||
cluster-module.nixosModules.tinc
|
||||
grocy-scanner.nixosModule
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
# todo
|
||||
sops.defaultSopsFile = "${secrets}/secrets/sterni.yaml";
|
||||
|
||||
defaults = { name, pkgs, ... }: {
|
||||
deployment.buildOnTarget = true;
|
||||
nix = {
|
||||
# no channesl needed this way
|
||||
nixPath = [ "nixpkgs=${pkgs.path}" ];
|
||||
|
@ -148,19 +150,40 @@
|
|||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
environment.systemPackages = [
|
||||
nixpkgs-fmt.defaultPackage."x86_64-linux"
|
||||
];
|
||||
imports = [
|
||||
cluster-module.nixosModules.tinc
|
||||
(sopsModule name)
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
};
|
||||
|
||||
sterni = { name, nodes, pkgs, ... }: {
|
||||
deployment.targetHost = "${name}.private";
|
||||
imports = [
|
||||
./nixos/configs/${name}/configuration.nix
|
||||
grocy-scanner.nixosModule
|
||||
];
|
||||
home-manager.users.mainUser = {
|
||||
imports = [
|
||||
doom-emacs-nix.hmModule
|
||||
home-manager-utils.hmModule
|
||||
];
|
||||
};
|
||||
environment.systemPackages = [
|
||||
nixpkgs-fmt.defaultPackage."x86_64-linux"
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
pepe = { name, nodes, pkgs, ... }: {
|
||||
deployment.targetHost = "${name}.private";
|
||||
imports = [
|
||||
./nixos/configs/${name}/configuration.nix
|
||||
grocy-scanner.nixosModule
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
./tinc.nix
|
||||
#./wifi-access-point.nix
|
||||
#./lan.nix
|
||||
./dms.nix
|
||||
#./dms.nix
|
||||
./borg.nix
|
||||
./mpd.nix
|
||||
#./mpd.nix
|
||||
./grocy.nix
|
||||
./taskwarrior-pushover.nix
|
||||
./neo4j.nix
|
||||
#./neo4j.nix
|
||||
|
||||
];
|
||||
|
||||
|
|
|
@ -681,7 +681,7 @@ in
|
|||
'';
|
||||
};
|
||||
systemd.timers.fetchmail = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
# timerConfig.OnCalendar = " *-*-* *:00:00";
|
||||
timerConfig.OnCalendar = "*:0/10";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
../../system/all
|
||||
./netdata.nix
|
||||
./initssh.nix
|
||||
./graylog-exporter.nix
|
||||
#./graylog-exporter.nix
|
||||
./prometheus-exporters.nix
|
||||
./packages.nix
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue