2023-06-28 20:48:01 +00:00
|
|
|
{
|
|
|
|
description = "jolheiser's nixos config";
|
|
|
|
|
|
|
|
inputs = {
|
2024-05-16 01:13:17 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-10-31 01:21:31 +00:00
|
|
|
jolheiser.url = "git+https://git.jolheiser.com/nixpkgs.git";
|
2024-04-04 02:36:13 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils"; # Only expressed here to use for followers
|
2023-09-05 21:23:08 +00:00
|
|
|
|
2023-09-05 19:50:57 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
darwin.follows = "";
|
2023-09-05 21:23:08 +00:00
|
|
|
home-manager.follows = "";
|
2023-09-05 19:50:57 +00:00
|
|
|
};
|
2023-07-14 16:55:09 +00:00
|
|
|
};
|
2024-03-05 15:27:47 +00:00
|
|
|
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
2023-09-05 19:50:57 +00:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2023-09-22 00:57:36 +00:00
|
|
|
helix = {
|
2024-02-01 22:25:20 +00:00
|
|
|
url = "git+https://git.jolheiser.com/helix.drv.git";
|
2024-10-31 01:21:31 +00:00
|
|
|
inputs.nixpkgs.follows = "jolheiser/nixpkgs";
|
2023-09-22 00:57:36 +00:00
|
|
|
};
|
2023-09-24 06:24:10 +00:00
|
|
|
website = {
|
2024-02-01 22:25:20 +00:00
|
|
|
url = "git+https://git.jolheiser.com/jolheiser.com.git";
|
2023-09-24 06:24:10 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.follows = "flake-utils";
|
2024-03-10 02:33:51 +00:00
|
|
|
templ.follows = "templ";
|
2023-09-24 06:24:10 +00:00
|
|
|
};
|
|
|
|
};
|
2023-10-15 20:07:13 +00:00
|
|
|
resume = {
|
2024-02-01 22:25:20 +00:00
|
|
|
url = "git+https://git.jolheiser.com/resume.git";
|
2023-10-15 20:07:13 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
2024-07-12 03:24:41 +00:00
|
|
|
blog = {
|
|
|
|
url = "git+https://git.jolheiser.com/blog.git";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
templ.follows = "templ";
|
|
|
|
};
|
|
|
|
};
|
2024-07-12 04:08:39 +00:00
|
|
|
bennet = {
|
|
|
|
url = "git+https://git.jolheiser.com/bennet.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-11-14 01:38:36 +00:00
|
|
|
git-age = {
|
2024-02-01 22:25:20 +00:00
|
|
|
url = "git+https://git.jolheiser.com/git-age.git";
|
2023-11-14 01:38:36 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
2023-11-28 04:59:26 +00:00
|
|
|
gist = {
|
2024-02-01 22:25:20 +00:00
|
|
|
url = "git+https://git.jolheiser.com/gist.git";
|
2023-11-28 04:59:26 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-22 01:12:09 +00:00
|
|
|
tmpl = {
|
2024-02-01 22:25:20 +00:00
|
|
|
url = "git+https://git.jolheiser.com/tmpl.git";
|
2023-12-22 01:12:09 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
gomodinit = {
|
2024-02-01 22:25:20 +00:00
|
|
|
url = "git+https://git.jolheiser.com/gomodinit.git";
|
2023-12-22 01:12:09 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-06-20 00:31:48 +00:00
|
|
|
cfg = {
|
|
|
|
url = "git+https://git.jolheiser.com/cfg.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-17 16:00:07 +00:00
|
|
|
cfg-playground = {
|
|
|
|
url = "git+https://git.jolheiser.com/cfg-playground.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-01-15 23:26:44 +00:00
|
|
|
ugit = {
|
|
|
|
url = "git+https://git.jolheiser.com/ugit.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-15 03:50:27 +00:00
|
|
|
git-pr = {
|
|
|
|
url = "git+https://git.jolheiser.com/git-pr-nix.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-25 15:48:40 +00:00
|
|
|
spectre = {
|
|
|
|
url = "git+https://git.jolheiser.com/go-spectre.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-05 19:50:57 +00:00
|
|
|
# Other flakes
|
2023-09-05 21:23:08 +00:00
|
|
|
golink = {
|
|
|
|
url = "github:tailscale/golink";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
tclip = {
|
|
|
|
url = "github:tailscale-dev/tclip";
|
|
|
|
inputs = {
|
2024-07-23 20:22:23 +00:00
|
|
|
#nixpkgs.follows = "nixpkgs";
|
2023-09-05 21:23:08 +00:00
|
|
|
utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
2023-12-11 16:40:14 +00:00
|
|
|
templ = {
|
|
|
|
url = "github:a-h/templ";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-07-20 22:57:51 +00:00
|
|
|
actual = {
|
|
|
|
url = "git+https://git.xeno.science/xenofem/actual-nix.git";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-09-05 04:08:09 +00:00
|
|
|
foundry.url = "github:reckenrode/nix-foundryvtt";
|
2024-10-25 20:55:21 +00:00
|
|
|
tailproxy = {
|
|
|
|
url = "git+https://git.jolheiser.com/tailproxy.git";
|
2024-07-20 22:57:51 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-08-14 01:53:03 +00:00
|
|
|
ghostty.url = "git+ssh://git@github.com/ghostty-org/ghostty";
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
|
|
|
|
2024-08-01 18:27:47 +00:00
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
nixos-hardware,
|
|
|
|
agenix,
|
|
|
|
...
|
|
|
|
}@inputs:
|
|
|
|
let
|
|
|
|
overlays = [
|
|
|
|
(_: prev: {
|
|
|
|
nur = import inputs.nur {
|
|
|
|
nurpkgs = prev;
|
|
|
|
pkgs = prev;
|
|
|
|
};
|
|
|
|
jolheiser = {
|
|
|
|
helix = inputs.helix.packages.${prev.system}.default;
|
|
|
|
website = inputs.website.packages.${prev.system}.default;
|
|
|
|
resume = inputs.resume.packages.${prev.system}.default;
|
|
|
|
git-age = inputs.git-age.packages.${prev.system}.default;
|
|
|
|
gist = inputs.gist.packages.${prev.system}.default;
|
|
|
|
tmpl = inputs.tmpl.packages.${prev.system}.default;
|
|
|
|
gomodinit = inputs.gomodinit.packages.${prev.system}.default;
|
|
|
|
cfg = inputs.cfg.packages.${prev.system}.default;
|
|
|
|
blog = inputs.blog.packages.${prev.system}.default;
|
|
|
|
bennet = inputs.bennet.packages.${prev.system}.default;
|
2024-09-25 15:48:40 +00:00
|
|
|
spectre = inputs.spectre.packages.${prev.system}.default;
|
2024-08-01 18:27:47 +00:00
|
|
|
};
|
|
|
|
tclip = inputs.tclip.packages.${prev.system}.tclip;
|
|
|
|
templ = inputs.templ.packages.${prev.system}.templ;
|
2024-08-09 02:29:29 +00:00
|
|
|
ghostty = inputs.ghostty.packages.${prev.system}.ghostty;
|
2024-08-01 18:27:47 +00:00
|
|
|
})
|
|
|
|
inputs.golink.overlay
|
|
|
|
];
|
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
inherit overlays system;
|
|
|
|
config.allowUnfree = true;
|
2023-09-01 04:09:18 +00:00
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
commonConfig =
|
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
nixpkgs.overlays = overlays;
|
|
|
|
# TODO Remove when apps are updated
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
|
|
|
|
};
|
2024-04-05 15:13:28 +00:00
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
username = "jolheiser";
|
|
|
|
system = "x86_64-linux";
|
|
|
|
homeManagerModules = [
|
|
|
|
agenix.homeManagerModules.age
|
|
|
|
{
|
|
|
|
home = {
|
|
|
|
inherit username;
|
|
|
|
homeDirectory = "/home/${username}";
|
|
|
|
};
|
|
|
|
age = {
|
|
|
|
secretsDir = "/home/${username}/.agenix/agenix";
|
|
|
|
secretsMountPoint = "/home/${username}/.agenix/agenix.d";
|
|
|
|
identityPaths = [ "/home/${username}/.ssh/nix" ];
|
|
|
|
secrets = {
|
|
|
|
ssh-config.file = ./secrets/shared/ssh-config.age;
|
|
|
|
spotify = {
|
|
|
|
file = ./secrets/shared/spotify.age;
|
|
|
|
path = "/home/${username}/.cache/spotify-player/credentials.json";
|
|
|
|
};
|
|
|
|
irc-pw.file = ./secrets/shared/irc-pw.age;
|
|
|
|
gist-pw.file = ./secrets/shared/gist-pw.age;
|
2024-11-21 04:03:35 +00:00
|
|
|
spectre-pw.file = ./secrets/shared/spectre-pw.age;
|
2024-08-01 18:27:47 +00:00
|
|
|
git-send-email.file = ./secrets/shared/git-send-email.age;
|
|
|
|
cachix = {
|
|
|
|
file = ./secrets/shared/cachix.age;
|
|
|
|
path = "/home/${username}/.config/cachix/cachix.dhall";
|
|
|
|
};
|
2024-08-08 00:19:51 +00:00
|
|
|
llm = {
|
|
|
|
file = ./secrets/shared/llm.age;
|
|
|
|
path = "/home/${username}/.config/io.datasette.llm/keys.json";
|
|
|
|
};
|
2024-04-05 15:13:28 +00:00
|
|
|
};
|
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
}
|
|
|
|
./apps/gui
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit homeManagerModules;
|
|
|
|
homeConfigurations = {
|
|
|
|
"jolheiser" = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
2024-08-09 02:50:43 +00:00
|
|
|
modules = homeManagerModules ++ [ ./apps/de ];
|
2024-04-05 15:13:28 +00:00
|
|
|
};
|
2024-04-04 02:36:13 +00:00
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
nixosConfigurations = {
|
|
|
|
"genmaicha" = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
nixos-hardware.nixosModules.framework-13-7040-amd
|
|
|
|
./machines/genmaicha
|
|
|
|
commonConfig
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"sencha" = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
./machines/sencha
|
|
|
|
commonConfig
|
|
|
|
];
|
|
|
|
};
|
2023-11-02 19:40:29 +00:00
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs { inherit overlays system; };
|
2024-09-05 04:08:09 +00:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
};
|
|
|
|
dragonwell =
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
inputs.golink.nixosModules.default
|
|
|
|
inputs.ugit.nixosModules.default
|
|
|
|
inputs.git-pr.nixosModules.default
|
|
|
|
inputs.actual.nixosModules.default
|
2024-10-25 20:55:21 +00:00
|
|
|
inputs.tailproxy.nixosModules.default
|
2024-09-05 04:08:09 +00:00
|
|
|
inputs.foundry.nixosModules.foundryvtt
|
2024-10-17 16:00:07 +00:00
|
|
|
inputs.cfg-playground.nixosModules.default
|
2024-08-01 18:27:47 +00:00
|
|
|
./modules/tclip
|
2024-12-12 04:12:05 +00:00
|
|
|
./modules/miniserve
|
2024-08-01 18:27:47 +00:00
|
|
|
./machines/dragonwell
|
|
|
|
];
|
|
|
|
services.tclip.package = inputs.tclip.packages.${pkgs.system}.tclipd;
|
|
|
|
};
|
2024-08-26 01:54:55 +00:00
|
|
|
gunpowder = {
|
|
|
|
imports = [
|
2024-10-26 18:57:10 +00:00
|
|
|
inputs.tailproxy.nixosModules.default
|
2024-08-26 01:54:55 +00:00
|
|
|
./machines/gunpowder
|
|
|
|
];
|
|
|
|
};
|
2023-07-06 19:32:19 +00:00
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
nixConfig = {
|
|
|
|
extra-substitutors = [ "https://jolheiser.cachix.org" ];
|
|
|
|
extra-trusted-public-keys = [
|
|
|
|
"jolheiser.cachix.org-1:fiKkfTuHFqDK5ZOVxcqb4InUkKsrTvtMLISid7XvuVg="
|
2024-04-04 02:36:13 +00:00
|
|
|
];
|
|
|
|
};
|
2024-08-01 18:27:47 +00:00
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = [
|
|
|
|
agenix.packages.${system}.agenix
|
|
|
|
pkgs.colmena
|
2024-04-04 02:36:13 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-06-28 20:48:01 +00:00
|
|
|
}
|