2019-12-03 05:18:30 +00:00
|
|
|
{
|
2023-11-10 18:48:06 +00:00
|
|
|
description = "teutat3s hosts in nix";
|
2019-12-05 05:36:36 +00:00
|
|
|
|
2021-11-30 00:38:56 +00:00
|
|
|
nixConfig.extra-experimental-features = "nix-command flakes";
|
2021-07-16 21:09:26 +00:00
|
|
|
|
2022-11-26 15:00:22 +00:00
|
|
|
inputs = {
|
|
|
|
# Track channels with commits tested and built by hydra
|
2024-11-17 21:07:43 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
2024-05-27 08:56:46 +00:00
|
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2022-11-26 15:00:22 +00:00
|
|
|
|
|
|
|
flake-compat.url = "github:edolstra/flake-compat";
|
|
|
|
flake-compat.flake = false;
|
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
nix-darwin.url = "github:lnl7/nix-darwin/master";
|
|
|
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-26 15:00:22 +00:00
|
|
|
|
2024-11-18 18:20:18 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
2023-11-10 18:48:06 +00:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-26 15:00:22 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
2022-11-26 15:00:22 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
|
|
deploy-rs.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
deploy-rs.inputs.flake-compat.follows = "flake-compat";
|
2022-11-26 15:00:22 +00:00
|
|
|
|
|
|
|
agenix.url = "github:ryantm/agenix";
|
2023-11-10 18:48:06 +00:00
|
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
agenix.inputs.darwin.follows = "nix-darwin";
|
2023-11-10 19:00:35 +00:00
|
|
|
agenix.inputs.home-manager.follows = "home-manager";
|
2022-11-26 15:00:22 +00:00
|
|
|
|
2024-08-27 08:38:27 +00:00
|
|
|
nix-direnv.url = "github:nix-community/nix-direnv";
|
|
|
|
nix-direnv.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
nix-direnv.inputs.flake-parts.follows = "flake-parts";
|
|
|
|
|
2022-11-26 15:00:22 +00:00
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
|
|
|
|
2024-08-15 10:22:42 +00:00
|
|
|
lix-module = {
|
2024-10-28 12:56:33 +00:00
|
|
|
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
|
2024-08-15 10:22:42 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-10-08 21:54:32 +00:00
|
|
|
invoiceplane-template.url = "git+https://git.pub.solar/momo/invoiceplane-templates.git";
|
2024-06-24 21:00:22 +00:00
|
|
|
invoiceplane-template.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
invoiceplane-template.inputs.flake-parts.follows = "flake-parts";
|
2024-12-02 09:05:35 +00:00
|
|
|
|
|
|
|
watson.url = "github:pub-solar/watson";
|
|
|
|
watson.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
watson.inputs.flake-parts.follows = "flake-parts";
|
2022-11-26 15:00:22 +00:00
|
|
|
};
|
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
outputs =
|
|
|
|
inputs@{ self, ... }:
|
|
|
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
2022-11-26 15:00:22 +00:00
|
|
|
];
|
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
imports = [
|
|
|
|
./lib
|
|
|
|
./modules
|
|
|
|
./hosts
|
|
|
|
./users
|
|
|
|
./overlays
|
|
|
|
];
|
2021-07-16 21:01:25 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
perSystem =
|
|
|
|
args@{
|
|
|
|
system,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
_module.args = {
|
|
|
|
inherit inputs;
|
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ inputs.agenix.overlays.default ];
|
2024-08-19 10:38:46 +00:00
|
|
|
};
|
2021-07-16 21:01:25 +00:00
|
|
|
unstable = import inputs.unstable { inherit system; };
|
2023-11-10 18:48:06 +00:00
|
|
|
master = import inputs.master { inherit system; };
|
2021-07-16 21:01:25 +00:00
|
|
|
};
|
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
agenix
|
|
|
|
cachix
|
2024-08-19 10:35:36 +00:00
|
|
|
deploy-rs
|
|
|
|
nixd
|
|
|
|
nixos-generators
|
|
|
|
nvfetcher
|
2024-08-19 10:38:46 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
editorconfig-checker
|
|
|
|
nodePackages.prettier
|
|
|
|
shellcheck
|
|
|
|
shfmt
|
|
|
|
treefmt
|
|
|
|
];
|
2024-08-19 10:38:46 +00:00
|
|
|
};
|
2021-04-22 03:44:15 +00:00
|
|
|
};
|
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
flake = {
|
2024-08-19 08:14:21 +00:00
|
|
|
formatter."x86_64-linux" = inputs.unstable.legacyPackages."x86_64-linux".nixfmt-rfc-style;
|
|
|
|
|
2024-02-02 22:25:54 +00:00
|
|
|
deploy.nodes = self.lib.deploy.mkDeployNodes self.nixosConfigurations {
|
2023-05-13 16:43:12 +00:00
|
|
|
#example = {
|
|
|
|
# hostname = "example.com:22";
|
|
|
|
# sshUser = "bartender";
|
|
|
|
# fastConnect = true;
|
|
|
|
# profilesOrder = ["system" "direnv"];
|
|
|
|
# profiles.direnv = {
|
|
|
|
# user = "bartender";
|
2023-07-02 15:56:17 +00:00
|
|
|
# path = self.pkgs.x86_64-linux.nixos.deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurationsPortable.x86_64-linux.bartender;
|
2023-05-13 16:43:12 +00:00
|
|
|
# };
|
|
|
|
#};
|
2024-08-19 10:38:46 +00:00
|
|
|
|
2022-11-26 15:00:22 +00:00
|
|
|
fae = {
|
2024-04-13 00:05:59 +00:00
|
|
|
hostname = "192.168.13.35";
|
2022-11-26 15:00:22 +00:00
|
|
|
sshUser = "pub-solar";
|
|
|
|
};
|
|
|
|
powder = {
|
|
|
|
hostname = "80.71.153.194";
|
|
|
|
sshUser = "root";
|
|
|
|
profilesOrder = [
|
|
|
|
"system"
|
|
|
|
"direnv"
|
|
|
|
];
|
|
|
|
profiles.direnv = {
|
|
|
|
user = "pub-solar";
|
2023-07-13 15:18:05 +00:00
|
|
|
path = self.pkgs.x86_64-linux.nixos.deploy-rs.lib.x86_64-linux.activate.home-manager self.homeConfigurationsPortable.x86_64-linux.pub-solar;
|
2024-08-19 10:38:46 +00:00
|
|
|
};
|
2022-07-08 12:20:00 +00:00
|
|
|
};
|
2022-01-19 00:13:15 +00:00
|
|
|
};
|
2022-08-13 20:35:43 +00:00
|
|
|
};
|
2022-11-26 15:00:22 +00:00
|
|
|
};
|
2019-12-03 05:18:30 +00:00
|
|
|
}
|