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
|
2023-01-28 21:02:35 +00:00
|
|
|
nixos-22-05.url = "github:nixos/nixpkgs/nixos-22.05";
|
2023-11-23 21:50:06 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
2023-11-10 18:48:06 +00:00
|
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2022-11-26 15:00:22 +00:00
|
|
|
master.url = "github:nixos/nixpkgs/master";
|
|
|
|
|
2023-12-17 21:56:22 +00:00
|
|
|
#fork.url = "github:teutat3s/nixpkgs/signal-desktop-6.42";
|
2023-09-07 19:27:41 +00:00
|
|
|
|
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
|
|
|
|
2023-12-04 11:39:28 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.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";
|
|
|
|
nixos-flake.url = "github:srid/nixos-flake";
|
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
|
|
|
|
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware";
|
|
|
|
|
|
|
|
# PubSolarOS additions
|
2023-10-30 21:03:52 +00:00
|
|
|
triton-vmtools.url = "git+https://git.pub.solar/pub-solar/infra-vintage?ref=main&dir=vmtools";
|
2023-11-10 18:48:06 +00:00
|
|
|
triton-vmtools.inputs.nixpkgs.follows = "unstable";
|
2022-11-26 15:00:22 +00:00
|
|
|
|
|
|
|
tritonshell.url = "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main";
|
2023-11-10 18:48:06 +00:00
|
|
|
tritonshell.inputs.nixpkgs.follows = "unstable";
|
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 = [
|
|
|
|
inputs.nixos-flake.flakeModule
|
|
|
|
./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
|
2021-07-16 21:01:25 +00:00
|
|
|
];
|
|
|
|
};
|
2023-11-10 18:48:06 +00:00
|
|
|
unstable = import inputs.unstable { inherit system; };
|
|
|
|
master = import inputs.master { inherit system; };
|
2021-04-22 03:44:15 +00:00
|
|
|
};
|
2021-07-16 21:01:25 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
deploy-rs
|
|
|
|
nixpkgs-fmt
|
|
|
|
agenix
|
|
|
|
cachix
|
|
|
|
editorconfig-checker
|
|
|
|
nodePackages.prettier
|
|
|
|
nvfetcher
|
|
|
|
shellcheck
|
|
|
|
shfmt
|
|
|
|
treefmt
|
|
|
|
nixos-generators
|
|
|
|
];
|
2021-04-22 03:44:15 +00:00
|
|
|
};
|
2022-11-26 15:00:22 +00:00
|
|
|
};
|
2021-04-22 03:44:15 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
flake = {
|
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-02-02 22:25:54 +00:00
|
|
|
|
2022-11-26 15:00:22 +00:00
|
|
|
fae = {
|
2024-02-02 22:25:54 +00:00
|
|
|
hostname = "192.168.178.31";
|
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;
|
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
|
|
|
};
|
2023-11-10 18:48:06 +00:00
|
|
|
};
|
2019-12-03 05:18:30 +00:00
|
|
|
}
|