~ruther/nixos-config

41c18930577c170f4a26691a7630799793f99d7a — Frantisek Bohacek 1 year, 5 months ago 423030d
feat: pin channels and registry
2 files changed, 12 insertions(+), 2 deletions(-)

M hosts/configuration.nix
M hosts/home.nix
M hosts/configuration.nix => hosts/configuration.nix +6 -1
@@ 145,6 145,12 @@
  };

  nix = {                                   # Nix Package Manager settings
    registry.nixpkgs.flake = inputs.nixpkgs;
    nixPath = [
      "nixpkgs=flake:nixpkgs"
      "nixpkgs-stable=flake:nixpkgs-stable"
    ];

    settings = {
      auto-optimise-store = true;           # Optimise syslinks
      substituters = [


@@ 161,7 167,6 @@
      options = "--delete-older-than 2d";
    };
    package = pkgs.nixVersions.unstable;    # Enable nixFlakes on system
    registry.nixpkgs.flake = inputs.nixpkgs;
    extraOptions = ''
      experimental-features = nix-command flakes
      keep-outputs          = true

M hosts/home.nix => hosts/home.nix +6 -1
@@ 11,7 11,7 @@
#           └─ default.nix
#

{ config, lib, nix-index-database, nixpkgs, stable, pkgs, user, location, ... }:
{ config, lib, nix-index-database, nixpkgs, inputs, stable, pkgs, user, location, ... }:

{ 
  imports =                                   # Home Manager Modules


@@ 21,6 21,11 @@
    (import ../modules/services/home.nix);

  nixpkgs.config.allowUnfree = true;
  nix = {
    registry.nixpkgs.flake = inputs.nixpkgs;
  };
  home.sessionVariables.NIX_PATH =
    "nixpkgs=flake:nixpkgs$\{NIX_PATH:+:$NIX_PATH}";

  xdg = {
    userDirs = let dir = s: "${config.home.homeDirectory}/${s}"; in {

Do not follow this link