mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
flake cleanup, removed impermanence
This commit is contained in:
parent
2068b655da
commit
0921151c6e
6 changed files with 26 additions and 59 deletions
|
@ -1,6 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.variables = { EDITOR = "vim"; };
|
||||
environment.variables = { EDITOR = "hx"; }; # we set helix in here to have it shared
|
||||
environment.systemPackages = with pkgs; [
|
||||
((vim_configurable.override { }).customize {
|
||||
name = "vim";
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
zsh-newuser-install () {}
|
||||
|
||||
switch() {
|
||||
sudo true # ask the password so we can leave during the (sometimes quite long) build process
|
||||
OUT_PATH=/tmp/nixos-rebuild-nom-$(date +%s)
|
||||
${pkgs.nix-output-monitor}/bin/nom build /etc/nixos#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel -o $OUT_PATH
|
||||
sudo ${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $OUT_PATH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue