2023-06-28 20:48:01 +00:00
|
|
|
{
|
|
|
|
description = "jolheiser's nixos config";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2023-09-05 21:23:08 +00:00
|
|
|
nixpkgs-py36.url = "github:nixos/nixpkgs/34f85de51bbc74595e63b22ee089adbb31f7c7a2";
|
|
|
|
|
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
|
|
|
};
|
2023-07-10 22:03:30 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-06-28 20:48:01 +00:00
|
|
|
|
2023-09-05 19:50:57 +00:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2023-09-05 21:23:08 +00:00
|
|
|
jolheiser-nur = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/nur";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-22 00:57:36 +00:00
|
|
|
helix = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/helix.drv";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-24 06:24:10 +00:00
|
|
|
website = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/jolheiser.com";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.follows = "flake-utils";
|
2023-09-29 15:20:55 +00:00
|
|
|
nur.follows = "jolheiser-nur";
|
2023-09-24 06:24:10 +00:00
|
|
|
};
|
|
|
|
};
|
2023-10-15 20:07:13 +00:00
|
|
|
resume = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/resume";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
2023-11-14 01:38:36 +00:00
|
|
|
git-age = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/git-age";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
flake-utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
2023-11-28 04:59:26 +00:00
|
|
|
gist = {
|
|
|
|
url = "git+https://git.jojodev.com/jolheiser/gist";
|
|
|
|
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 = {
|
|
|
|
nixpkgs.follows = "nixpkgs";
|
|
|
|
utils.follows = "flake-utils";
|
|
|
|
};
|
|
|
|
};
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
|
|
|
|
2023-07-06 19:32:19 +00:00
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
2023-07-14 16:55:09 +00:00
|
|
|
agenix,
|
2023-07-06 19:32:19 +00:00
|
|
|
jolheiser-nur,
|
2023-09-22 00:57:36 +00:00
|
|
|
helix,
|
2023-09-24 06:24:10 +00:00
|
|
|
website,
|
2023-10-15 20:07:13 +00:00
|
|
|
resume,
|
2023-11-14 01:38:36 +00:00
|
|
|
git-age,
|
2023-11-28 04:59:26 +00:00
|
|
|
gist,
|
2023-08-15 20:40:39 +00:00
|
|
|
nixpkgs-py36,
|
2023-09-05 19:50:57 +00:00
|
|
|
golink,
|
|
|
|
tclip,
|
2023-07-06 19:32:19 +00:00
|
|
|
...
|
|
|
|
} @ inputs: let
|
2023-09-05 19:50:57 +00:00
|
|
|
overlays = [
|
2023-10-19 20:48:44 +00:00
|
|
|
(_: prev: {
|
2023-09-05 19:50:57 +00:00
|
|
|
nur = import inputs.nur {
|
|
|
|
nurpkgs = prev;
|
|
|
|
pkgs = prev;
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
2023-09-24 06:28:57 +00:00
|
|
|
jolheiser = {
|
|
|
|
nur = inputs.jolheiser-nur.packages.${prev.system};
|
|
|
|
helix = inputs.helix.packages.${prev.system}.default;
|
|
|
|
website = inputs.website.packages.${prev.system}.default;
|
2023-10-15 20:07:13 +00:00
|
|
|
resume = inputs.resume.packages.${prev.system}.default;
|
2023-11-14 01:38:36 +00:00
|
|
|
git-age = inputs.git-age.packages.${prev.system}.default;
|
2023-11-28 04:59:26 +00:00
|
|
|
gist = inputs.gist.packages.${prev.system}.default;
|
2023-09-24 06:28:57 +00:00
|
|
|
};
|
2023-09-05 21:23:08 +00:00
|
|
|
tclip = inputs.tclip.packages.${prev.system}.tclip;
|
2023-09-05 19:50:57 +00:00
|
|
|
})
|
|
|
|
golink.overlay
|
|
|
|
];
|
2023-11-13 20:45:38 +00:00
|
|
|
userSecret = path: {
|
|
|
|
file = path;
|
|
|
|
owner = username;
|
|
|
|
};
|
|
|
|
commonConfig = {gui ? true}: {config, ...}: {
|
2023-09-01 04:09:18 +00:00
|
|
|
config = {
|
2023-09-05 19:50:57 +00:00
|
|
|
nixpkgs.overlays = overlays;
|
2023-09-01 04:09:18 +00:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.${username}.imports =
|
|
|
|
if gui
|
|
|
|
then [./apps/gui]
|
|
|
|
else [./apps/nogui];
|
|
|
|
extraSpecialArgs = {
|
|
|
|
flakePath = "/home/${username}/.config/nixpkgs";
|
2023-07-06 19:32:19 +00:00
|
|
|
};
|
2023-09-01 04:09:18 +00:00
|
|
|
};
|
|
|
|
age.secrets = {
|
|
|
|
ssh-config = userSecret ./secrets/shared/ssh-config.age;
|
|
|
|
ssh-config-work = userSecret ./secrets/shared/ssh-config-work.age;
|
|
|
|
spotify-pw = userSecret ./secrets/shared/spotify-pw.age;
|
|
|
|
irc-pw = userSecret ./secrets/shared/irc-pw.age;
|
2023-11-28 04:59:26 +00:00
|
|
|
gist-pw = userSecret ./secrets/shared/gist-pw.age;
|
2023-12-06 03:26:23 +00:00
|
|
|
git-send-email = userSecret ./secrets/shared/git-send-email.age;
|
2023-09-01 04:09:18 +00:00
|
|
|
};
|
|
|
|
};
|
2023-07-14 16:55:09 +00:00
|
|
|
};
|
|
|
|
username = "jolheiser";
|
2023-07-10 22:03:30 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
|
|
|
"chai" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
2023-07-14 16:55:09 +00:00
|
|
|
agenix.nixosModules.default
|
2023-07-10 22:03:30 +00:00
|
|
|
./machines/chai
|
2023-09-01 04:09:18 +00:00
|
|
|
(commonConfig {})
|
2023-08-15 20:40:39 +00:00
|
|
|
({pkgs, ...}: {
|
2023-08-15 21:31:17 +00:00
|
|
|
config = {
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(_: _: {
|
|
|
|
py36 = import nixpkgs-py36 {inherit (pkgs) system;};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
home-manager.users.${username}.programs = {
|
|
|
|
git.package = pkgs.gitSVN;
|
2023-09-01 04:09:18 +00:00
|
|
|
firefox.profiles.default.bookmarks = [(import ./apps/gui/firefox/work.nix)];
|
2023-08-15 21:31:17 +00:00
|
|
|
};
|
|
|
|
age.secrets = {
|
|
|
|
netrc = {
|
|
|
|
file = ./secrets/work/netrc.age;
|
|
|
|
owner = username;
|
|
|
|
path = "/home/${username}/.netrc";
|
|
|
|
};
|
|
|
|
pipconf = {
|
|
|
|
file = ./secrets/work/pip.conf.age;
|
|
|
|
owner = username;
|
|
|
|
path = "/home/${username}/.config/pip/pip.conf";
|
|
|
|
};
|
2023-11-16 18:26:35 +00:00
|
|
|
pypirc = {
|
|
|
|
file = ./secrets/work/pypirc.age;
|
|
|
|
owner = username;
|
|
|
|
path = "/home/${username}/.pypirc";
|
|
|
|
};
|
2023-11-13 20:45:38 +00:00
|
|
|
cifs = userSecret ./secrets/work/cifs.age;
|
2023-08-15 21:31:17 +00:00
|
|
|
};
|
2023-08-03 21:52:52 +00:00
|
|
|
};
|
2023-07-10 22:03:30 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"matcha" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
2023-07-14 16:55:09 +00:00
|
|
|
agenix.nixosModules.default
|
2023-07-10 22:03:30 +00:00
|
|
|
./machines/matcha
|
2023-09-01 04:09:18 +00:00
|
|
|
(commonConfig {})
|
2023-07-10 22:03:30 +00:00
|
|
|
];
|
|
|
|
};
|
2023-10-18 04:54:24 +00:00
|
|
|
};
|
|
|
|
colmena = {
|
|
|
|
meta = {
|
|
|
|
nixpkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
overlays = overlays;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
dragonwell = {
|
|
|
|
imports = [
|
2023-09-05 20:13:35 +00:00
|
|
|
golink.nixosModules.default
|
2023-09-01 03:34:54 +00:00
|
|
|
./machines/dragonwell
|
|
|
|
];
|
|
|
|
};
|
2023-07-06 19:32:19 +00:00
|
|
|
};
|
2023-11-02 19:40:29 +00:00
|
|
|
nixConfig = {
|
|
|
|
extra-substitutors = ["https://jolheiser.cachix.org"];
|
|
|
|
extra-trusted-public-keys = ["jolheiser.cachix.org-1:fiKkfTuHFqDK5ZOVxcqb4InUkKsrTvtMLISid7XvuVg="];
|
|
|
|
};
|
2023-07-10 22:03:30 +00:00
|
|
|
}
|
|
|
|
// inputs.flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
devShells.default = pkgs.mkShell {
|
2023-07-14 16:55:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
agenix.packages.${system}.agenix
|
2023-10-18 04:54:24 +00:00
|
|
|
pkgs.colmena
|
2023-07-06 19:32:19 +00:00
|
|
|
];
|
|
|
|
};
|
2023-07-10 22:03:30 +00:00
|
|
|
});
|
2023-06-28 20:48:01 +00:00
|
|
|
}
|