Skip to content

Commit

Permalink
feat: match the system's nixpkgs with this flake
Browse files Browse the repository at this point in the history
  • Loading branch information
s3igo committed Sep 23, 2024
1 parent 482e2da commit e78fb21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 0 additions & 2 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ in
./wezterm
];

nix.nixPath = [ "${stateHome}/nix/defexpr/channels" ];

programs = {
home-manager.enable = true;
# rio.enable = true;
Expand Down
14 changes: 13 additions & 1 deletion modules/system.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ config, system, ... }:
{
config,
system,
inputs,
...
}:

{
# Auto upgrade nix package and the daemon service.
Expand Down Expand Up @@ -28,6 +33,13 @@
};
};

# Match `NIX_PATH` with this flake.
nix.channel.enable = false;
# `nixpkgs` used in `nix run nixpkgs#hello` etc.
nix.registry.nixpkgs.flake = inputs.nixpkgs;
# `nixpkgs` used in `nix repl '<nixpkgs>'` etc.
# environment.etc."nix/inputs/nixpkgs".source = inputs.nixpkgs;

# Set Git commit hash for darwin-version.
# system.configurationRevision = self.rev or self.dirtyRev or null;

Expand Down

0 comments on commit e78fb21

Please sign in to comment.