diff --git a/hosts/common.nix b/hosts/common.nix index 51f8f55e..169e82d1 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -1,8 +1,6 @@ { pkgs, shell, ... }: -let - flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main"; -in -{ +let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main"; +in { nix = { settings.experimental-features = [ "nix-command" "flakes" ]; gc = { @@ -19,10 +17,7 @@ in environment = { localBinInPath = true; systemPackages = with pkgs; [ distrobox ]; - shellAliases = { - nou = "sudo nixos-rebuild switch --flake \"${flakeURL}\""; - hms = "${pkgs.home-manager}/bin/home-manager switch --flake \"${flakeURL}\""; - }; + shellAliases.nou = ''sudo nixos-rebuild switch --flake "${flakeURL}"''; }; networking.networkmanager.enable = true; services = {