2024-08-24 22:16:51 -04:00
|
|
|
{
|
2024-10-13 02:23:51 -04:00
|
|
|
description = "Jimbo's systems as a flake";
|
|
|
|
|
2024-08-24 22:16:51 -04:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-10-09 03:36:08 -04:00
|
|
|
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-08-24 22:16:51 -04:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2024-09-23 11:41:28 -04:00
|
|
|
mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-24.05";
|
2024-10-13 13:01:09 -04:00
|
|
|
blender-bin.url = "https://flakehub.com/f/edolstra/blender-bin/1.0.9.tar.gz";
|
2024-09-23 11:41:28 -04:00
|
|
|
minecraft.url = "github:Infinidoge/nix-minecraft";
|
|
|
|
hardware.url = "github:nixos/nixos-hardware/master";
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-10-09 03:36:08 -04:00
|
|
|
# Secure boot
|
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.4.1";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-08-24 22:16:51 -04:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
2024-08-26 19:43:59 -04:00
|
|
|
self,
|
|
|
|
nixpkgs,
|
2024-10-09 03:36:08 -04:00
|
|
|
unstable,
|
2024-08-24 22:16:51 -04:00
|
|
|
nur,
|
2024-09-23 11:41:28 -04:00
|
|
|
mailserver,
|
2024-08-27 05:14:19 -04:00
|
|
|
blender-bin,
|
2024-09-23 11:41:28 -04:00
|
|
|
hardware,
|
2024-10-09 03:36:08 -04:00
|
|
|
lanzaboote,
|
2024-08-26 19:43:59 -04:00
|
|
|
home-manager,
|
2024-08-24 22:16:51 -04:00
|
|
|
...
|
2024-10-13 13:01:09 -04:00
|
|
|
}@inputs:
|
|
|
|
let
|
2024-10-13 02:23:51 -04:00
|
|
|
mkNixos = modules: nixpkgs.lib.nixosSystem {
|
|
|
|
inherit modules;
|
|
|
|
specialArgs = { inherit (self) inputs outputs; };
|
|
|
|
};
|
|
|
|
|
|
|
|
mkHome = modules: pkgs: home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit modules pkgs;
|
|
|
|
extraSpecialArgs = { inherit (self) inputs outputs; };
|
|
|
|
};
|
|
|
|
in {
|
2024-10-12 20:44:05 -04:00
|
|
|
# Variables defined so they can be accessed globally
|
|
|
|
secrets = import ./variables/secrets;
|
|
|
|
displays = import ./variables/displays;
|
|
|
|
ips = import ./variables/ips;
|
|
|
|
look = import ./variables/look;
|
|
|
|
ws = import ./variables/workspaces;
|
2024-10-12 17:35:52 -04:00
|
|
|
|
2024-10-02 21:35:29 -04:00
|
|
|
# NixOS config entrypoint, use 'nixos-rebuild --flake .#your-hostname'
|
2024-08-24 22:16:51 -04:00
|
|
|
nixosConfigurations = {
|
2024-10-13 02:23:51 -04:00
|
|
|
firefly = mkNixos [
|
|
|
|
./hosts/firefly/system
|
|
|
|
lanzaboote.nixosModules.lanzaboote
|
|
|
|
];
|
|
|
|
cyberspark = mkNixos [
|
2024-10-13 13:01:09 -04:00
|
|
|
./hosts/cyberspark/system
|
2024-10-13 02:23:51 -04:00
|
|
|
mailserver.nixosModule
|
|
|
|
];
|
|
|
|
shuttleworth = mkNixos [
|
2024-10-13 13:01:09 -04:00
|
|
|
./hosts/shuttleworth/system
|
2024-10-13 02:23:51 -04:00
|
|
|
hardware.nixosModules.pine64-pinebook-pro
|
|
|
|
];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
|
2024-10-02 21:35:29 -04:00
|
|
|
# Home-manager configuration, use 'home-manager --flake .#your-username@your-hostname'
|
2024-08-24 22:16:51 -04:00
|
|
|
homeConfigurations = {
|
2024-10-13 02:23:51 -04:00
|
|
|
"jimbo@firefly" = mkHome [
|
|
|
|
./hosts/firefly/home
|
|
|
|
nur.nixosModules.nur
|
|
|
|
] nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
|
|
|
|
"jimbo@cyberspark" = mkHome [
|
2024-10-13 13:01:09 -04:00
|
|
|
./hosts/cyberspark/home
|
2024-10-13 02:23:51 -04:00
|
|
|
] nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
|
|
|
|
"jimbo@shuttleworth" = mkHome [
|
2024-10-13 13:01:09 -04:00
|
|
|
./hosts/shuttleworth/home
|
2024-10-13 02:23:51 -04:00
|
|
|
nur.nixosModules.nur
|
|
|
|
] nixpkgs.legacyPackages.aarch64-linux;
|
|
|
|
|
|
|
|
# Profile for ssh envrionments on different non-root systems
|
|
|
|
"jimbo@terminal" = mkHome [
|
2024-10-13 13:01:09 -04:00
|
|
|
./hosts/terminal/home
|
2024-10-13 02:23:51 -04:00
|
|
|
] nixpkgs.legacyPackages.x86_64-linux;
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|