From 6b4469a98d7b2d88a3442b1051174000538199f0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 29 Apr 2024 00:23:51 +0200 Subject: de-flake local systems --- user/settings/base.nix | 5 ++++- user/settings/nix.nix | 3 ++- user/settings/shell.nix | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'user/settings') diff --git a/user/settings/base.nix b/user/settings/base.nix index 6725b6db..d0c01b87 100644 --- a/user/settings/base.nix +++ b/user/settings/base.nix @@ -1,4 +1,4 @@ -{ config +args@{ config , lib , pkgs , ... @@ -6,7 +6,10 @@ imports = [ ./neovim.nix ./shell.nix + (import + (args // { databases = import ; })) ]; + # Let Home Manager install and manage itself. programs.home-manager.enable = true; manual = { diff --git a/user/settings/nix.nix b/user/settings/nix.nix index 08380286..b194bb42 100644 --- a/user/settings/nix.nix +++ b/user/settings/nix.nix @@ -17,6 +17,7 @@ in home.packages = with pkgs; [ nil + niv nix-prefetch-scripts nix-init nix-update @@ -30,7 +31,7 @@ in ]; xdg.configFile."nix-init/config.toml".source = toml.generate "config.toml" { maintainers = [ "alanpearce" ]; - nixpkgs = "builtins.getFlake \"nixpkgs\""; + nixpkgs = ""; }; programs.emacs.extraPackages = epkgs: (with epkgs; [ nix-mode diff --git a/user/settings/shell.nix b/user/settings/shell.nix index 5358f618..e5fe4f77 100644 --- a/user/settings/shell.nix +++ b/user/settings/shell.nix @@ -125,7 +125,7 @@ in hol = "home-manager generations"; hox = "home-manager expire-generations '-30 days'"; - nsh = "nix shell"; + nsh = "nix-shell"; nb = "nix build"; nl = "nix log"; # shadows `coreutils.nl`, but I've never used that yet nr = "nix run"; -- cgit 1.4.1