Merge pull request #5 from ajgrf/main

Some minor improvements

- Comment fixes
- Use overlayed `legacyPackages` on `devShell`
This commit is contained in:
Gabriel Fontes 2022-10-29 02:36:45 -03:00 committed by GitHub
commit b8e3385f6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
{ {
description = "You new nix config"; description = "Your new nix config";
inputs = { inputs = {
# Nixpkgs # Nixpkgs

View file

@ -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. # Feel free to remove if you don't need it.
services.openssh = { services.openssh = {
enable = true; enable = true;

View file

@ -1,5 +1,5 @@
{ {
description = "You new nix config"; description = "Your new nix config";
inputs = { inputs = {
# Nixpkgs # Nixpkgs
@ -41,9 +41,9 @@
homeManagerModules = import ./modules/home-manager; homeManagerModules = import ./modules/home-manager;
# Devshell for bootstrapping # Devshell for bootstrapping
# Acessible through 'nix develop' or 'nix-shell' (legacy) # Accessible through 'nix develop' or 'nix-shell' (legacy)
devShells = forAllSystems (system: { devShells = forAllSystems (system: {
default = legacyPackages.${system}.callPackage ./shell.nix { }; default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
}); });
# This instantiates nixpkgs for each system listed above # This instantiates nixpkgs for each system listed above

View file

@ -1,6 +1,6 @@
# Shell for bootstrapping flake-enabled nix and home-manager # Shell for bootstrapping flake-enabled nix and home-manager
{ pkgs ? let { 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; lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
nixpkgs = fetchTarball { nixpkgs = fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz"; url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";