Merge pull request #5 from ajgrf/main
Some minor improvements - Comment fixes - Use overlayed `legacyPackages` on `devShell`
This commit is contained in:
commit
b8e3385f6b
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "You new nix config";
|
||||
description = "Your new nix config";
|
||||
|
||||
inputs = {
|
||||
# Nixpkgs
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
# This setups a SSH server. Very important if you're setting up a headless system.
|
||||
# This sets up a SSH server. Very important if you're setting up a headless system.
|
||||
# Feel free to remove if you don't need it.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "You new nix config";
|
||||
description = "Your new nix config";
|
||||
|
||||
inputs = {
|
||||
# Nixpkgs
|
||||
|
@ -41,9 +41,9 @@
|
|||
homeManagerModules = import ./modules/home-manager;
|
||||
|
||||
# Devshell for bootstrapping
|
||||
# Acessible through 'nix develop' or 'nix-shell' (legacy)
|
||||
# Accessible through 'nix develop' or 'nix-shell' (legacy)
|
||||
devShells = forAllSystems (system: {
|
||||
default = legacyPackages.${system}.callPackage ./shell.nix { };
|
||||
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
|
||||
});
|
||||
|
||||
# This instantiates nixpkgs for each system listed above
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Shell for bootstrapping flake-enabled nix and home-manager
|
||||
{ pkgs ? let
|
||||
# If pkgs is not defined, instanciate nixpkgs from locked commit
|
||||
# If pkgs is not defined, instantiate nixpkgs from locked commit
|
||||
lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
|
||||
nixpkgs = fetchTarball {
|
||||
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
|
||||
|
|
Loading…
Reference in a new issue