Add root user config for home-manager on nixos
This commit is contained in:
parent
b0f78102c6
commit
8ad013a4c9
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
14
common.nix
14
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 = {
|
||||
|
|
Loading…
Reference in a new issue