Skip to content

Commit

Permalink
jujutsu: use martinvonz/jj#3191
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottia committed Oct 21, 2024
1 parent 7721974 commit 1c89f03
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 19 deletions.
75 changes: 67 additions & 8 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 18 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,60 @@
flake-utils.url = github:numtide/flake-utils;

nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;

nix-darwin = {
url = github:LnL7/nix-darwin/master;
inputs.nixpkgs.follows = "nixpkgs";
};

home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};

sops-nix = {
url = github:Mic92/sops-nix;
inputs.nixpkgs.follows = "nixpkgs";
};

furpoll = {
url = git+https://github.com/kivikakk/furpoll;
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};

nixos-hardware.url = github:NixOS/nixos-hardware;

comenzar = {
url = git+https://github.com/kivikakk/comenzar;
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};

plasma-manager = {
url = github:nix-community/plasma-manager;
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};

nix-darwin = {
url = github:LnL7/nix-darwin/master;
inputs.nixpkgs.follows = "nixpkgs";
jj = {
url = github:charlottia/jj/ssh-openssh;
inputs.flake-utils.follows = "flake-utils";
};
};

outputs = inputs @ {
self,
flake-utils,
nixpkgs,
nix-darwin,
home-manager,
sops-nix,
furpoll,
nixos-hardware,
comenzar,
plasma-manager,
nix-darwin,
jj,
}: let
mkHost = hostName: system: specifiedModules: let
isDarwin = builtins.elem system nixpkgs.lib.platforms.darwin;
Expand Down Expand Up @@ -137,7 +149,8 @@
hostConfig.module
]
++ homeManagerModules
++ specifiedModules;
++ specifiedModules
++ [{nixpkgs.overlays = [jj.overlays.default];}];
};
in
flake-utils.lib.eachDefaultSystem (system: {
Expand Down
7 changes: 1 addition & 6 deletions modules/git/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
config,
lib,
vyxos-git-base,
...
}: {
{vyxos-git-base, ...}: {
config = {
nixpkgs.config.packageOverrides = oldPkgs: {
vyxos-git = vyxos-git-base.overrideAttrs {
Expand Down

0 comments on commit 1c89f03

Please sign in to comment.