Add root user config for home-manager on nixos

This commit is contained in:
Evie Litherland-Smith 2023-05-09 17:45:04 +01:00
parent b0f78102c6
commit 8ad013a4c9
3 changed files with 14 additions and 6 deletions

View file

@ -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 = {

View file

@ -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

View file

@ -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 = {