You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating nixos, I need to be more active in updating all occurrences of the nixos version throughout my config.
Since nixvim also needs the version for the branch, I came up with a minor "fix" for this "problem":
This will always fetch the correct version of nixvim after a system update.
My next problem was that I was also deploying my configuration to systems that only provide the Nix package manager (and home manager) but not NixOS itself. On such systems, the line sysconfig = (import <nixpkgs/nixos> {}).config; will give an error since there is no nixos config to be fetched! I have a non-elegant way of solving this, but it works. I am checking if the configuration.nix file is on the system and choosing the appropriate branch to be fetched:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When updating nixos, I need to be more active in updating all occurrences of the nixos version throughout my config.
Since nixvim also needs the version for the branch, I came up with a minor "fix" for this "problem":
This will always fetch the correct version of nixvim after a system update.
My next problem was that I was also deploying my configuration to systems that only provide the Nix package manager (and home manager) but not NixOS itself. On such systems, the line
sysconfig = (import <nixpkgs/nixos> {}).config;
will give an error since there is no nixos config to be fetched! I have a non-elegant way of solving this, but it works. I am checking if theconfiguration.nix
file is on the system and choosing the appropriate branch to be fetched:If someone has a more elegant solution or has a more elegant way of solving this, please leave some feedback!
Beta Was this translation helpful? Give feedback.
All reactions