Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Nov 26, 2024
1 parent 31f9418 commit 1327644
Show file tree
Hide file tree
Showing 11 changed files with 160 additions and 62 deletions.
4 changes: 3 additions & 1 deletion darwin-modules/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
nixpkgs.config.allowUnfree = true;

nix = {
package = pkgs.nixVersions.nix_2_23;
# package = pkgs.nixVersions.nix_2_23;
extraOptions = ''
extra-experimental-features = nix-command flakes
use-case-hack = false
Expand All @@ -20,6 +20,8 @@
"esselius.cachix.org-1:h6FQzpdflxdZfnnL0caV88xt5K5sNzgO0VIHQthTymA="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
plugin-files = "${pkgs.nix-plugins}/lib/nix/plugins";
extra-builtins-file = "${../extra-builtins.nix}";
};

optimise = {
Expand Down
11 changes: 11 additions & 0 deletions extra-builtins.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ exec, ... }:

let
bashScript = script: [ "bash" "-c" script ];
run = command: bashScript ''
echo '"'$(${command})'"'
'';
in
{
gcloudToken = exec (run "gcloud auth print-access-token");
}
130 changes: 73 additions & 57 deletions flake.lock

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

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin";

cfg-work.url = "github:esselius/cfg-work";

raspberry-pi-nix.url = "github:tstat/raspberry-pi-nix/v0.4.0";
raspberry-pi-nix.inputs.nixpkgs.follows = "nixpkgs";
authentik-nix.url = "github:nix-community/authentik-nix/version/2024.6.1";
Expand Down
3 changes: 2 additions & 1 deletion home-configurations/peteresselius.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, ezModules, config, lib, ... }:
{ inputs, pkgs, ezModules, config, lib, ... }:

let
inherit (lib) mkMerge mkIf;
Expand All @@ -9,6 +9,7 @@ in
ezModules.git
ezModules.ssh
ezModules.profiles
inputs.cfg-work.homeModules.sbt
];

config = mkMerge [
Expand Down
3 changes: 2 additions & 1 deletion home-modules/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
ghq = {
root = "~/src";
};
url."[email protected]:".insteadOf = "https://github.com";
url."[email protected]:pagero".insteadOf = "https://github.com/pagero";
url."[email protected]:esselius".insteadOf = "https://github.com/esselius";
};
};

Expand Down
Loading

0 comments on commit 1327644

Please sign in to comment.