From 8ad013a4c9e51edd3d6e9ab88effde96cda3e762 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 9 May 2023 17:45:04 +0100 Subject: [PATCH] Add root user config for home-manager on nixos --- H0615.nix | 3 --- Vanguard.nix | 3 --- common.nix | 14 ++++++++++++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/H0615.nix b/H0615.nix index cc6add8b..4b07dfa2 100644 --- a/H0615.nix +++ b/H0615.nix @@ -25,9 +25,6 @@ home.username = "elitherl"; home.homeDirectory = "/home/elitherl"; home.stateVersion = "22.11"; - - programs.fish.shellAbbrs.nixedit = "$EDITOR $HOME/.nixos/$(hostname).nix"; - programs.fish.shellAbbrs.update = "sudo nixos-rebuild switch"; }; system.autoUpgrade = { diff --git a/Vanguard.nix b/Vanguard.nix index 64d48e05..04ee0bea 100644 --- a/Vanguard.nix +++ b/Vanguard.nix @@ -40,9 +40,6 @@ home.homeDirectory = "/home/xenia"; home.stateVersion = "22.11"; home.packages = with pkgs; [ prismlauncher ]; - - programs.fish.shellAbbrs.nixedit = "$EDITOR $HOME/.nixos/$(hostname).nix"; - programs.fish.shellAbbrs.update = "sudo nixos-rebuild switch"; }; # Extra hardware configuration diff --git a/common.nix b/common.nix index 8765ac8f..1bd4e05d 100644 --- a/common.nix +++ b/common.nix @@ -7,6 +7,20 @@ # Home manager integration with NixOS home-manager.useUserPackages = true; home-manager.useGlobalPkgs = true; + home-manager.users.root = { ... }: { + imports = [ + ./home/env/bash.nix + ./home/env/bat.nix + ./home/env/starship.nix + ./home/env/neovim.nix + ./home/git/personal.nix + ]; + # Home Manager needs a bit of information about you and the + # paths it should manage. + home.username = "root"; + home.homeDirectory = "/root"; + home.stateVersion = "22.11"; + }; # Enable networking networking = {