Skip to content

Commit

Permalink
Add wezterm flake and move experimental features under extra
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Dec 10, 2024
1 parent 5e5f2a6 commit 4226885
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 17 deletions.
167 changes: 166 additions & 1 deletion flake.lock

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

15 changes: 11 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@
# home-manager.follows = "home-manager";
# };
# };
helix = {
url = "github:helix-editor/helix";
# inputs.nixpkgs.follows = "nixpkgs-unstable";
};
helix.url = "github:helix-editor/helix";
wezterm.url = "github:wez/wezterm?dir=nix";
# nixvim-flake.url = "github:arunoruto/nvim.nix";
# Styling
stylix = {
Expand Down Expand Up @@ -201,4 +199,13 @@
# devShells.${system} = import ./shells nixpkgs.legacyPackages.${system};
# packages.${system} = import ./pkgs nixpkgs.legacyPackages.${system};
};

# nixConfig = {
# extra-substituters = [
# "https://wezterm.cachix.org"
# ];
# extra-trusted-public-keys = [
# "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
# ];
# };
}
3 changes: 3 additions & 0 deletions modules/home-manager/pc/terminal/wezterm.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
config,
lib,
pkgs,
inputs,
...
}:
{
Expand All @@ -9,6 +11,7 @@
config = lib.mkIf config.terminals.wezterm.enable {
programs.wezterm = {
enable = true;
package = inputs.wezterm.packages.${pkgs.system}.default;
enableZshIntegration = config.programs.zsh.enable;
extraConfig = ''
local wezterm = require 'wezterm'
Expand Down
14 changes: 9 additions & 5 deletions modules/home-manager/server/nix-utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,19 @@ in
nix = {
package = lib.mkForce pkgs.unstable.nix;
settings = {
experimental-features = [
extra-experimental-features = [
"nix-command"
"flakes"
];
extra-experimental-features = [
"pipe-operators"
];
extra-substituters = [ "https://helix.cachix.org" ];
extra-trusted-public-keys = [ "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" ];
extra-substituters = [
"https://helix.cachix.org"
"https://wezterm.cachix.org"
];
extra-trusted-public-keys = [
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
];
};
extraOptions = ''
trusted-users = root ${user}
Expand Down
18 changes: 11 additions & 7 deletions modules/nixos/system/nix-utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@
nix = {
# package = pkgs.unstable.nix;
settings = {
# build in a sandbox
sandbox = true;
# auto-optimise-store = true;
experimental-features = [
warn-dirty = false;
accept-flake-config = true;
extra-experimental-features = [
"nix-command"
"flakes"
];
extra-experimental-features = [
"pipe-operators"
];
warn-dirty = false;
extra-substituters = [ "https://helix.cachix.org" ];
extra-trusted-public-keys = [ "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs=" ];
extra-substituters = [
"https://helix.cachix.org"
"https://wezterm.cachix.org"
];
extra-trusted-public-keys = [
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
"wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0="
];
};
extraOptions = ''
trusted-users = root ${username}
Expand Down

0 comments on commit 4226885

Please sign in to comment.