From b5bcdf72cbc998550bf55af1842fe65f8c9ef0bf Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 2 Mar 2025 15:18:43 +0100 Subject: Revert "Switch back to flakes" This reverts commit c0384c43821474d28af1d9696ceb473a0d769292. --- user/settings/base.nix | 5 ++++- user/settings/darwin.nix | 2 +- user/settings/nix.nix | 5 ++--- user/settings/nixos.nix | 4 ++-- user/settings/shell.nix | 6 +++--- 5 files changed, 12 insertions(+), 10 deletions(-) (limited to 'user/settings') diff --git a/user/settings/base.nix b/user/settings/base.nix index edfe692b..aa131ad3 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/darwin.nix b/user/settings/darwin.nix index f65cfaa2..b4da1cd3 100644 --- a/user/settings/darwin.nix +++ b/user/settings/darwin.nix @@ -87,7 +87,7 @@ home.shellAliases = { rb = "darwin-rebuild"; - rbs = "darwin-rebuild switch --flake '.?submodules=1'"; + rbs = "darwin-rebuild switch"; dig = "dig +noall +answer"; diff --git a/user/settings/nix.nix b/user/settings/nix.nix index 85f4c65d..5c8543fa 100644 --- a/user/settings/nix.nix +++ b/user/settings/nix.nix @@ -15,11 +15,10 @@ in }; home.packages = with pkgs; [ - age - agenix cached-nix-shell nixd nil + npins nix-prefetch-scripts nix-init nix-update @@ -32,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/nixos.nix b/user/settings/nixos.nix index 862ccdf5..0745b010 100644 --- a/user/settings/nixos.nix +++ b/user/settings/nixos.nix @@ -5,8 +5,8 @@ ]; home.shellAliases = { - rbs = "nixos-rebuild switch --flake '.?submodules=1'"; - rbb = "nixos-rebuild boot --flake '.?submodules=1'"; + rbs = "nixos-rebuild switch"; + rbb = "nixos-rebuild boot"; rbr = "nixos-rebuild switch --rollback"; }; } diff --git a/user/settings/shell.nix b/user/settings/shell.nix index 446c9fd4..e35564ef 100644 --- a/user/settings/shell.nix +++ b/user/settings/shell.nix @@ -112,8 +112,8 @@ in ho = "home-manager"; hob = "home-manager build"; - hos = "home-manager switch --flake '.?submodules=1' -b hm_bak_$(date +%Y%m%d%H%M)"; - hon = "home-manager news --flake '.?submodules=1'"; + hos = "home-manager switch"; + hon = "home-manager news"; hoh = "home-manager help"; hop = "home-manager packages"; hol = "home-manager generations"; @@ -122,7 +122,7 @@ in lw = "lorri watch"; lwo = "lorri watch --once"; - nsh = "nix shell"; + nsh = "nix-shell"; nb = "nix build"; nd = "nix develop"; nl = "nix log"; # shadows `coreutils.nl`, but I've never used that yet -- cgit 1.4.1