From 95339bd6a7b750fd1c45813c774a4e2111b7988f Mon Sep 17 00:00:00 2001 From: Swarsel Date: Mon, 16 Dec 2024 21:05:18 +0100 Subject: [PATCH] feat: minor improvements (add vim, $FLAKE) --- SwarselSystems.org | 5 +++-- profiles/common/home/packages.nix | 1 + profiles/common/home/settings.nix | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index 2c0d638..ee8f950 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -7287,7 +7287,7 @@ This section sets up all the imports that are used in the home-manager section. Again, we adapt =nix= to our needs, enable the home-manager command for non-NixOS machines (NixOS machines are using it as a module) and setting user information that I always keep the same. #+begin_src nix :tangle profiles/common/home/settings.nix - { lib, config, pkgs, ... }: + { self, lib, config, pkgs, ... }: { nix = { package = lib.mkDefault pkgs.nix; @@ -7309,7 +7309,7 @@ This section sets up all the imports that are used in the home-manager section. stateVersion = lib.mkDefault "23.05"; keyboard.layout = "us"; sessionVariables = { - FLAKE = "$HOME/.dotfiles"; + FLAKE = "${self}"; }; }; } @@ -7366,6 +7366,7 @@ This holds packages that I can use as provided, or with small modifications (as hyprpicker # color picker findutils units + vim # nix alejandra diff --git a/profiles/common/home/packages.nix b/profiles/common/home/packages.nix index 1bf1cc8..3393b55 100644 --- a/profiles/common/home/packages.nix +++ b/profiles/common/home/packages.nix @@ -30,6 +30,7 @@ hyprpicker # color picker findutils units + vim # nix alejandra diff --git a/profiles/common/home/settings.nix b/profiles/common/home/settings.nix index 317a8a7..fd44d71 100644 --- a/profiles/common/home/settings.nix +++ b/profiles/common/home/settings.nix @@ -1,4 +1,4 @@ -{ lib, config, pkgs, ... }: +{ self, lib, config, pkgs, ... }: { nix = { package = lib.mkDefault pkgs.nix; @@ -20,7 +20,7 @@ stateVersion = lib.mkDefault "23.05"; keyboard.layout = "us"; sessionVariables = { - FLAKE = "$HOME/.dotfiles"; + FLAKE = "${self}"; }; }; }